hai friends helpme this is sailaja,
i need to sort the datagrid, with respect to enter data in textbox which was placed out of grid
Hi Sailaja,
May i know whether ur using datagrid(1.1) or gridview(2.0),
If ur using grid view, then assign the datatable to DataView, use the sort property of dataview to sort the items based on the values, and then use this as a datasource for the grid view.
But Im not sure whether Dataview is there in 1.1 version,
If yes then U can use this.
Here is a sample Code...
- DataView dv = new DataView(datatable);
-
dv.RowFilter = "columnname='" + urValue + "'";
-
return dv;