【发布时间】:2013-05-17 09:38:25
【问题描述】:
我的ultragrid 中有许多列,其中包含用户定义的visible 和invisible 操作。现在我必须检查该列是否是网格中的第一个column。因为我有一些columns 在index 的帮助下明确绑定,所以我无法获得该列。它总是显示与第一个相同的column。
//代码
For Each UltraGridColumn In Me.TransactionsGrid.Rows.Band.Columns
'Get the first cell column in the grid
UltraGridCell = UltraGridRow.Cells(UltraGridColumn)
If ('Check Here') Then
'Set the cell image
UltraGridCell.Appearance.Image = My.Resources.Tran_comment_161
UltraGridCell.Appearance.ImageHAlign = HAlign.Right
UltraGridCell.Appearance.ImageVAlign = VAlign.Top
Else
UltraGridCell.Appearance.ResetImage()
End If
Next
如何做到这一点?
【问题讨论】:
-
我真的不明白你想要什么。您只是想获取网格的第一列吗?
-
是的。因为如果我隐藏第一列,我有一些明确绑定的列,那么代码应该将第二列显示为第一列,现在在网格中作为第一列可见。我说清楚了吗?
标签: .net vb.net infragistics ultrawingrid