我的ultragrid
中有多少列具有用戶定義的visible
和invisible
操作。現在我必須檢查該列是否是網格中的第一個column
。因爲我有一些columns
這是明確綁定在index
的幫助下,我不能得到列。總是顯示與第一個相同的column
。獲取Ultragrid中的第一個可見列
//代碼
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
如何實現這一目標?
我真的不明白你想要什麼。你是否想要獲得網格的第一列? –
是的。因爲我有一些顯式綁定的列,如果我隱藏第一列,那麼代碼應該顯示第二列作爲第一列,現在可以在第一列顯示在網格中。我清楚了嗎? – iamCR