I have a SQL database with multiple tables and I want to bind one of them to a DataGridView.
I use this code :
http://msdn.microsoft.com/en-us/library/fbk67b6z.aspx#Y210
But my datagridview only show column names and does not draw any rows.
Does anyone can help me ?
I have a SQL database with multiple tables and I want to bind one
Share
If you can see the correct column names but don’t see the data, there could be one of these two problems (or both):
EDIT: Have you tried switching these two statements?