SVN-Revision: r416
This commit is contained in:
tdx
2025-03-27 07:39:40 +00:00
parent 96044f915d
commit 125c91d75c
+5 -3
View File
@@ -6723,10 +6723,12 @@ namespace Lskj.Control
{
FieldName = dynamicFieldName,
Caption = subField.FieldText,
Visible = true,
Width = subField.Width,
Visible = subField.Visible,
Tag = subField,
Width = subField.Width, // 如果有特定宽度也可以赋值,若无则忽略
OptionsColumn = { FixedWidth = true } // <-- 明确设置固定宽度
MinWidth = subField.Width,
MaxWidth = subField.Width,
OptionsColumn = { AllowEdit = subField.Edit, FixedWidth = true }
};
bandedGridControlEx.SetColumnFormat(subColumn, subField);