private DataView CreateNewView (string strFilter)
{
DataView myView= new DataView(
MyDataSet.MyTable,
strFiletr,
"ID",
DataViewRowState.CurrentRows);
return myView;
}
private ShowTable(string strFilter)
{
MyFlyGrid.Rows.DataSource = CreateNewView(strFiletr);
}
private ExecFunction()
{
ShowTable(string.Empty);
ShowTable("ID = 5");
}
When we call the first ShowTable (with no filter) the DataView which we created contains 100 rows and we show 100 rows in the grid. But when we called it at the second time (with the filter) the DataView contains one row but we still see 100 rows in the grid.
This problem still exist at the latest version. Can you help us solve this problem?
thanks,
Oren.