Row Count from Data Grid

  • Thread starter Thread starter Rajesh Abraham
  • Start date Start date
R

Rajesh Abraham

Is it possible to get the row count from Data Grid. The
Data grid is populated from a data view which has a row
filter.

I can get the row count from the data view, which is the
DataSource for the DataGrid but I would like to know if I
can get the count directly from the DataGrid

Thanks,

Rajesh Abraham Chacko
 
I did not found a way how to get row count from DataGrid. but I'm using
DataView.Count.
my DataGrid is binded to a table "Channels". Then I'm setting filter to that
table as
ds.Channels.DefaultView.RowFilter = "name like %hello%";
then I can get
ds.Channels.DefaultView.Count -- current visible rows
ds.Channels.Count -- total rows

So, I don't need to get row count from DataGrid
 
Back
Top