找回密码
 立即注册

QQ登录

只需一步,快速开始

tanqingyang

初级会员

19

主题

42

帖子

369

积分

初级会员

积分
369
tanqingyang
初级会员   /  发表于:2019-11-8 17:09  /   查看:3162  /  回复:3
求助: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 的写法 应该怎么实现啊?

3 个回复

倒序浏览
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2019-11-8 18:19:52
沙发
处理编辑问题,使用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;
            };
回复 使用道具 举报
tanqingyang
初级会员   /  发表于:2019-11-11 08:55:09
板凳
好的 好的 非常感谢
回复 使用道具 举报
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2019-11-11 09:39:31
地板
不客气
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部