Strange issue with a datagridview and a tabcontrol C#

后端 未结 2 1722
我在风中等你
我在风中等你 2020-12-10 23:13

I have a strange problem. I have a TabControl with two TabPages. Each page has a datagridview. Both datagridviews are pop

2条回答
  •  盖世英雄少女心
    2020-12-10 23:37

    THe only thing I can se at the moment is that you are not doing this on tabpage 2

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

    try

    dataGridView2.Sort(dataGridView2.Columns[1], ListSortDirection.Ascending);
    

提交回复
热议问题