Row Count from Data Grid

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
 
D

Dmitry Sazonov

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
 

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

Top