Foxtable(狐表)用户栏目专家坐堂 → [求助]动态的SQLTable如何加DrawCell和锚定?


  共有7801人关注过本帖平板打印复制链接

主题:[求助]动态的SQLTable如何加DrawCell和锚定?

帅哥哟,离线,有人找我吗?
mxko
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:一尾狐 帖子:463 积分:3792 威望:0 精华:0 注册:2013/2/20 11:07:00
[求助]动态的SQLTable如何加DrawCell和锚定?  发帖心情 Post By:2013/3/18 12:12:00 [只看该作者]

如题:已经在窗体的AfterLoad事件中加了下面代码:

Dim tbl As WinForm.Table
tbl = e.Form.CreateSQLTable("gform", "Select top 10 Formid as '编号',Formname as '名称' From test1","test")
tbl.SetBounds(2, 46, 886, 530)
e.Form.AddControl(tbl)
Tables("窗口1_test1").SetColVisibleWidth("编号'|90|名称|200")

DataTables("窗口1_test1").AddUserStyle("a", Color.Red, Color.White)

在项目的全局DrawCell事件 中加上下面代码:

Select Case e.Table.Name

    Case "窗口1_test1"

            If e.Row.Locked = True Then
                 e.Style = "a"
            Else
                 e.Style = ""
              End If

End Select

用上面方法没有效果

请教如何加上DrawCell和锚定效果

DrawCell


 回到顶部
总数 14 1 2 下一页