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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top