处理编辑问题,使用EditingControlShowing事件,输入相关的属性选GcTextBoxCell去设置就可以了
gcMultiRow.EditingControlShowing += (s, e) =>
{
var editingControl = gcMultiRow.EditingControl;
(gcMultiRow[0, 0] as GcTextBoxCell).HighlightText = true;
(gcMultiRow[0, 0] as GcTextBoxCell).AllowSpace = GrapeCity.Win.Editors.AllowSpace.Wide;
(gcMultiRow[0, 0] as GcTextBoxCell).AutoConvert = true;
(gcMultiRow[0, 0] as GcTextBoxCell).Format = "Z";
(gcMultiRow[0, 0] as GcTextBoxCell).HighlightText = true;
(gcMultiRow[0, 0] as GcTextBoxCell).MaxLength = 10;
}; |