How to get the number of rows of a datagrid?

  • Thread starter Thread starter AA
  • Start date Start date
A

AA

Do any one know how to get the number of rows instead of the visbleRowCount
of a datagrid?

Thanks in advance!

Richard
 
or dataGridDetails.VisibleRowCount


AA said:
Solved.

[C#]
int numRows = dataGridDetails.BindingContext[dataGridDetails.DataSource,
dataGridDetails.DataMember].Count;

[VB.NET]
Dim numRows as Integer = i
dataGridDetails.BindingContext(dataGridDetails.DataSource,
dataGridDetails.DataMember).Count;

Quoted from http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp?print=858




AA said:
Do any one know how to get the number of rows instead of the visbleRowCount
of a datagrid?

Thanks in advance!

Richard
 

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