June 4, 2008

Sorting DataGrid's Items

dataGridView1.Sort(dataGridView1.Columns[0], ListSortDirection.Ascending);

OR

dataGridView1.Sort(dataGridView1.Columns[0], ListSortDirection.Descending);

No comments: