A
Ando
Hello,
I'm trying to make the System.Windows.Forms.DataGrid to display all
rows from a DataTable (even deleted ones). I'm using the following code
snippet:
dataGrid.SetDataBinding(myDataSource, myDataMember);
DataView dataView =(DataView)( (CurrencyManager)
dataGrid.BindingContext[myDataSource, myDataMember]).List;
dataView.RowStateFilter |= DataViewRowState.Deleted;
The code works as I a expected (I mean it keeps deleted records in the
datagrid), but it always remove the last row (exactly like the bug
described here
http://www.dotnet247.com/247reference/msgs/29/145143.aspx ). When i
click the column header, all deleted rows reappear, and everything
looks fine. I'm using .NET Framework 1.1 with Sp1.
I'm wondering if this is really a bug, or am I just missing something?
Is there another way of keeping deleted rows visible in DataGrid?
I'm trying to make the System.Windows.Forms.DataGrid to display all
rows from a DataTable (even deleted ones). I'm using the following code
snippet:
dataGrid.SetDataBinding(myDataSource, myDataMember);
DataView dataView =(DataView)( (CurrencyManager)
dataGrid.BindingContext[myDataSource, myDataMember]).List;
dataView.RowStateFilter |= DataViewRowState.Deleted;
The code works as I a expected (I mean it keeps deleted records in the
datagrid), but it always remove the last row (exactly like the bug
described here
http://www.dotnet247.com/247reference/msgs/29/145143.aspx ). When i
click the column header, all deleted rows reappear, and everything
looks fine. I'm using .NET Framework 1.1 with Sp1.
I'm wondering if this is really a bug, or am I just missing something?
Is there another way of keeping deleted rows visible in DataGrid?