Foxtable(狐表)用户栏目专家坐堂 → 请教取消合并单元格


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

主题:请教取消合并单元格

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


加好友 发短信
等级:狐神 帖子:5054 积分:13025 威望:0 精华:0 注册:2014/5/15 21:34:00
请教取消合并单元格  发帖心情 Post By:2015/11/5 22:25:00 [只看该作者]

大师:请问,通过下面的代码取消用您提供的合并单元格代码,为何返回的值不一样,取消不了合并单元格?
Dim tb2 As WinForm.Table = e.Form.Controls("Table2")
Dim tb As Table = tb2.Table
Dim a As  Integer = tb.TopRow 
Dim b As  Integer = tb.LeftCol  
Dim c As  Integer = tb.BottomRow 
Dim d As  Integer = tb.RightCol 
MessageBox.Show(a)
MessageBox.Show(b)
MessageBox.Show(c)
MessageBox.Show(d)

tb.Grid.AllowMerging = C1.Win.C1FlexGrid.AllowMergingEnum.Custom 
Dim rng As C1.Win.C1FlexGrid.CellRange = tb.Grid.GetCellRange(a, b, c, d)
tb.Grid.MergedRanges.remove(rng)

 回到顶部
总数 24 1 2 3 下一页