InvalidOperationException: This operation cannot be performed while an auto-filled column is being resized

后端 未结 4 933
暖寄归人
暖寄归人 2021-02-15 00:30

I have a form with a DataGridView and I want to set the columns AutoSizeMode to Fill and the grids ColumnHeadersHeightSizeMode

4条回答
  •  滥情空心
    2021-02-15 01:02

    In .net core (3.1.9) and .net5.0 this is not reproducible. There was no directly fix, but somehow there are no exception any more. See (and post if you still have this issue): https://github.com/dotnet/winforms/issues/1830.

提交回复
热议问题