DataGrid.VisibleRowCount is 0 after databind

  • Thread starter Thread starter John Bonds
  • Start date Start date
J

John Bonds

I run the following code:

dgSearchResults.DataSource = MyDataTable
MsgBox(dgSearchResults.VisibleRowCount)

and I get 0. Can someone explain why I get 0?

Thanks,

John
 
Solution Found

Validate the following:
- dataset containing records
- datagrid should be visible
- datagrid containers should be visible
 
Back
Top