I'm currently using c#.net visual studio 2010.
Can I use a Datagridview or a list box as a lookup
table and compare a variable integer
Printable View
I'm currently using c#.net visual studio 2010.
Can I use a Datagridview or a list box as a lookup
table and compare a variable integer
If you want to display data to the user then use a control but if you don't want to display anything to the user then don't use a control. Do you want to display data to the user?
A DataGridView is good for displaying and editing tabular data while the ListBox is for displaying a simple list. If the user makes a selection from either then yes, you can get a value from the corresponding record and compare to some other variable. Exactly how depends on the specific circumstances but, with the ListBox, you would likely set the DisplayMember, ValueMember and DataSource and then use the SelectedValue.
Thanks for your input, I think I understand
what you are saying and I appreciate your
quick response.