简体   繁体   中英

C# WinForm 3.5 DataGridView Column Autosize Margin

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:

DataGridView 标题边距 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;

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM