JB,
The DataView.Count property should change based on the RowFilter property.
http://msdn.microsoft.com/library/de...counttopic.asp
As Cor suggests the DataTable.Rows.Count property will remain the same...
DataTable table = ...
DataView view = new DataView(table);
Debug.WriteLine(view.Count, "view before");
Debug.WriteLine(table.Rows.Count, "table before");
view.RowFilter = "text = 'pmts'";
Debug.WriteLine(view.Count, "view after");
Debug.WriteLine(table.Rows.Count, "table after");
Hope this helps
Jay
"Jensen bredal" <je************@yahoo.com> wrote in message
news:uh**************@tk2msftngp13.phx.gbl...
|
| Hello,
| I use The RowFilter property to select number of row from my dataview.
|
| How can i get the number of rows found ?
|
| I experience that the number of rows remains the same as before the
filter
| was applyied if there i no match for the filter.
|
| Any comment will be highly appreciated.
|
| JB
|
|