给ExElTablle的Template的属性Editor赋值 换成 GcMultiRow应该怎么写啊
求助:ExElTablle :Dim objTemplate As Template = Me.list.Template
objTemplate.Cells(0, 0).Editor = Me.list.abcde(100)
abcde方法:
Public Function abcde(ByVal digits As Integer, Optional ByVal inputable As Boolean = True) As GrapeCity.Win.ElTabelle.Editors.TextEditor
Dim objTextEditor As New GrapeCity.Win.ElTabelle.Editors.TextEditor
objTextEditor.AllowSpace = GrapeCity.Win.ElTabelle.Editors.AllowSpace.Wide
objTextEditor.AutoConvert = True
objTextEditor.Format = "Z"
objTextEditor.HighlightText = True
objTextEditor.LengthAsByte = True
objTextEditor.MaxLength = digits
Return objTextEditor
End Function
想换成GcMultiRow 的写法 应该怎么实现啊?
处理编辑问题,使用EditingControlShowing事件,输入相关的属性选GcTextBoxCell去设置就可以了
gcMultiRow.EditingControlShowing += (s, e) =>
{
var editingControl = gcMultiRow.EditingControl;
(gcMultiRow as GcTextBoxCell).HighlightText = true;
(gcMultiRow as GcTextBoxCell).AllowSpace = GrapeCity.Win.Editors.AllowSpace.Wide;
(gcMultiRow as GcTextBoxCell).AutoConvert = true;
(gcMultiRow as GcTextBoxCell).Format = "Z";
(gcMultiRow as GcTextBoxCell).HighlightText = true;
(gcMultiRow as GcTextBoxCell).MaxLength = 10;
}; 好的 好的 非常感谢 不客气
页:
[1]