ComponentOne2016V3
控件:C1.Win.C1FlexGrid.Classic.C1FlexGridClassic
问题:
VB6的FlexGird升级到VB.NET的C1FlexGridClassic后,
C1FlexGridClassic控件在AfterCollapse事件中,获取当前单击节点的最后一个子节点的行号,获取失败。取得值是-1。
是什么原因?
代码:
Private Sub fgTree_AfterCollapse(sender As Object, e As C1.Win.C1FlexGrid.RowColEventArgs) Handles fgTree.AfterCollapse
Dim wintRow As Integer = fgTree.GetNodeRow(eventArgs.Row, C1.Win.C1FlexGrid.NodeTypeEnum.LastChild)
While wintRow > eventArgs.Row
fgBar.set_RowHidden((wintRow * 2) + 1, True)
fgBar.set_RowHidden(wintRow * 2, True)
wintRow = wintRow - 1
End While
End Sub
|
|