Surendra Sharma

Surendra Sharma

Search This Blog

Wednesday, May 5, 2010

Datagrid Sort Example


void
MyDataGrid_Sort(Object sender, DataGridSortCommandEventArgs e) {


    SortField = (string)e.SortExpression;

    BindGrid();

}




DataView dv = new DataView(dt);

dv.Sort = SortField;

return dv;


No comments:

Post a Comment