Board index » Visual Studio » How to get the number of rows of a datagrid?

How to get the number of rows of a datagrid?

Visual Studio319
Do any one know how to get the number of rows instead of the visbleRowCount

of a datagrid?



Thanks in advance!



Richard


-
 

Re:How to get the number of rows of a datagrid?

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" rel="nofollow" target="_blank">www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp=858









"AA" <AA@hotmail.com>wrote in message

Quote
Do any one know how to get the number of rows instead of the

visbleRowCount

of a datagrid?



Thanks in advance!



Richard









-

Re:How to get the number of rows of a datagrid?

or dataGridDetails.VisibleRowCount





"AA" <AA@hotmail.com>wrote in message

Quote
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" rel="nofollow" target="_blank">www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp=858









"AA" <AA@hotmail.com>wrote in message

news:eLwfpT$dEHA.3476@tk2msftngp13.phx.gbl...

>Do any one know how to get the number of rows instead of the

visbleRowCount

>of a datagrid?

>

>Thanks in advance!

>

>Richard

>

>









-