c# - How do you find the number of rows in a DataGrid using .net compact framework? -
How can you find the number of rows using the .NET Compact Structure in NetGrid
Try to query the bound reference of the data grid: DataGrid.BindingContext [DataGrid.DataSource]. Content
Or, data source is datatable and you know something about the data source, you can also try (DataTable) dataGrid1.DataSource). Rows.Count or equivalent.
Comments
Post a Comment