Databind() on gridview not working VB.net ASP.Net -
I have a figure with verified 10 rows of the dtable name. I try to bind it on my gridview and do not see anything on my asp.net page How do these relatively simple lines not populate my gridview?
There is nothing in the form of a dive in the form of dinks as DTB as the datatale as the slow data adapter SqlDataAdapter as the dim sqlcmd string ....... dTable = New DataTable dataAdapter = New SqlDataAdapter (sqlcmd, con) dataAdapter.Fill (dTable) 'exists at this point in which there are 10 rows, I have verified that at runtime, gvUnitSystem.DataSource = dTable gvUnitSystem.DataBind () termination sub What am I doing?
Did you make sure that the gridview has the automatically generated column set to correct?
gvUnitSystem.AutoGenerateColumns = True
Comments
Post a Comment