B
Bill Todd
In a WinForms application with a DataGrid bound to a DataTable, if I
change the DefaultDataView.Sort property the order of the data in the
grid does not change.
If I change the Sort property then reassign the DataTable to the
DataGrid's DataSource the DataGrid does show the new order.
If I change the Sort property then call DataGrid.SetDataBinding the
DataGrid does _not_ show the new order.
1) Why must I rebind the grid to get it to display the data in the new
order?
2) Is rebinding the DataGrid the right (best) way to get it to display
the data in the new order?
3) Out of curiousity, why does SetDataBinding not work?
Thanks,
change the DefaultDataView.Sort property the order of the data in the
grid does not change.
If I change the Sort property then reassign the DataTable to the
DataGrid's DataSource the DataGrid does show the new order.
If I change the Sort property then call DataGrid.SetDataBinding the
DataGrid does _not_ show the new order.
1) Why must I rebind the grid to get it to display the data in the new
order?
2) Is rebinding the DataGrid the right (best) way to get it to display
the data in the new order?
3) Out of curiousity, why does SetDataBinding not work?
Thanks,