DataGridView does not show data
-
Saturday, March 31, 2012 12:09 PM
Dear all,
I am using VB.Net in VS2008 with SQL-Server 2005. Well, my DataGridView control has been attached to a BoundingSource at design-time; I tested it with "Preview Data..." and all records were retrieved (it may mean that the connection is working) but my DataGridView is empty at run-time.
Interesting to know that my DataGridView is working with some BindingSources but not with all because I changed the Bounding Source (using a different data table) and the gird was showing records perfectly. So I deleted and recreated a new bounding source but it didn't work for me.
In addition, I do the same thing on a different form with no problem; it seems I only have that problem on my main form.
TY, David
All Replies
-
Saturday, March 31, 2012 12:13 PMCan you show us you code that causes problems?
Mitja
-
Saturday, March 31, 2012 12:27 PM
Suddenly, I found where the problem was just after posting this. The line below was lost in the form's load method,,, embarrassing.
Me.Tbl_ThreadsTableAdapter.Fill(Me.LC_dbDataSet1.tbl_Threads)
BTW, I am correcting ,,, 'BindingSource' :DDDD
- Marked As Answer by David De Saturday, March 31, 2012 12:28 PM


