C#WinForm 3.5 DataGridView Column自动调整保证金 [英] C# WinForm 3.5 DataGridView Column Autosize Margin

查看:180
本文介绍了C#WinForm 3.5 DataGridView Column自动调整保证金的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C#3.5 WinForm项目,我找不到调整用于DataGridView头文件大小的保证金的位置。



AutoSizeColumnsMode设置为None。
我可以调整列的大小,然后双击AutoResize,它弹出这个宽度,使用我的真棒绘画技巧说明的边距:




如何调整使用的保证金?

解决方案

我想调整自动调整使用的保证金



用于设置DataGridView的边距列大小的属性稍微不那么明显:

  DataGridView1.RowHeadersWidth = 41; 


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;

这篇关于C#WinForm 3.5 DataGridView Column自动调整保证金的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆