Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Fill Windows Form from database table orfrom DataGridView

$
0
0

This is not a "How To?" question but rather a What's best? question.

I'm working on a Windows application in Visual Basic 2010 with an SQL Server database.  There are three forms in the program, each contains a DataGridView and have about 15 input controls. Each control is filled when a row on the DataGridView gains the focus.  Initially I filled the controls using a SELECT query and then populate each control. 

I also tried populating the controls by referring to the DataGridForm  row and index. I like the second alternative but don't know which is more effective and least likely to cause problems that I am unable to forecast.

Any thoughts, suggestions, ideas or criticism would be sincerely appreciated.

Milt


sirmilt


Viewing all articles
Browse latest Browse all 12583

Trending Articles