I have a C# 3.5 WinForm project, and I can't find where to adjust Margin used for a DataGridView's Header AutoSize.
AutoSizeColumnsMode is set to None. I can resize the column larger or smaller, then double click to AutoResize, and it pops to this width, using the margin illustrated by my awesome paint skills:
How can I adjust the margin used?
"I want to adjust the margin used by autosizing"
The property used to set a DataGridView's Margin Column size is slightly less obvious:
DataGridView1.RowHeadersWidth = 41;
Something like this: C# AutoSize DatagridView Populated By Linq Query
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.