"Greg Smith" <gj*@umn.eduwrote in message
news:e1**************@TK2MSFTNGP03.phx.gbl...
>I would like to display the filtered record count for a datasource used to
populate a gridview. I would like to change it every time the filter is
changed.
Is there a way to do this?
DataSet MyDS = <create your dataset>;
MyDS.Tables[0].DefaultView.RowFilter = "<apply your filter>";
MyGridView.DataSource = MyDS.Tables[0].DefaultView;
int intRecordCount = MyDS.Tables[0].DefaultView.Count;
--
http://www.markrae.net