private void dataGridViewX1_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.ColumnIndex == colYear.Index) { RowList.Sort(SortRowList); dataGridViewX1.Refresh(); } }