大师:请问,通过下面的代码取消用您提供的合并单元格代码,为何返回的值不一样,取消不了合并单元格?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)