No subject

I have a GridDataBoundGrid that is populated with data from a dataset. If I have 2 rows of data then during display, I can actually see 3 rows displayed, with the 3rd row being empty. Now the problem is that if i do a GridDataBoundGrid1.Model.RowCount then it returns me 3. Whereas the ans I am looking for is 2. Is there another method to get back the actual no of rows dispalyed that have data. Thanks Jyotsna

1 Reply

AD Administrator Syncfusion Team November 14, 2002 06:40 PM UTC

You can get the count from the CurrencyManager. Dim rows As Integer = Me.BindingContext(gridDataBoundGrid1.DataSource, gridDataBoundGrid1.DataMember).Count MessageBox.Show(rows.ToString())

Loader.
Up arrow icon