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

后端 未结 4 1217
旧巷少年郎
旧巷少年郎 2021-02-15 00:51

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:15

    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.

提交回复
热议问题