如何在c#降序中对datagridview中的数据进行排序

时间:2015-02-24 04:04:50

标签: c# sorting datagridview

所以我想把我的txtCourse和txtTimeslot填入datagridview, 然后按降序排序txtTimeslot并在datagridview中显示txtCourse和txtTimeslot

我已将txtCourse和txtTimeslot填入datagridview

string firstColum = txtCourse.Text;
string secondColum = txtTimeslot.Text;
string[] row = { firstColum, secondColum };

dgvLSD.Rows.Add(row);

我需要知道如何按降序对txtTimeslot进行排序,并将txtCourse和txtTimeslot显示为datagridview

0 个答案:

没有答案