I am using a DataView to Sort my DataGrid.
I set the Datasource for the Datagrid to my DataView, then I bind my DataGrid. Works fine.
If user selects another option, I would like to RE-Sort my already sorted DataGrid.
In order to do this, I will need to obtain a DataTable to pass into the NEW DataView
I am using C#....
Obviously there is no DataGrid1.DataTable Property. Is there a way to extract a DataTable?
I set the Datasource for the Datagrid to my DataView, then I bind my DataGrid. Works fine.
If user selects another option, I would like to RE-Sort my already sorted DataGrid.
In order to do this, I will need to obtain a DataTable to pass into the NEW DataView
I am using C#....
Code:
DataView view2 = new DataView(DataGrid1.DataTable????,"TheCity='"+city+"', PlusMinus DESC",DataViewRowState.CurrentRows);
Obviously there is no DataGrid1.DataTable Property. Is there a way to extract a DataTable?