序言
阴差阳错的被调到另外一个winform项目中去了,遇到了GridLookUpEdit控件,不知道如何更改其大小。
问了同事也不知道如何搞,这是最尬的事情。
开始实战
- PopupSizeable
//
// 摘要:
// Gets or sets a value indicating whether the dropdown window is sizeable.
//
// 值:
// true, if the dropdown is sizeable; otherwise, false.
[DefaultValue(true)]
[Description("Gets or sets a value indicating whether the dropdown window is sizeable.")]
public override bool PopupSizeable { get; set; }
- PopupFormSize
//
// 摘要:
// Gets or sets the popup window's size.
//
// 值:
// A System.Drawing.Size structure that specifies the popup window's size.
[Category("Behavior")]
[Description("Gets or sets the popup window's size.")]
public virtual Size PopupFormSize { get; set; }
两个属性配合使用

效果
- 调整后了的大小

- 未调整的大小

本文介绍了如何改变DevExpress.XtraEditors.GridLookUpEdit控件的宽高。通过设置PopupSizeable和PopupFormSize两个属性,可以实现控件大小的调整。文中展示了调整前后的效果对比。

被折叠的 条评论
为什么被折叠?



