У меня есть несколько столбцов в моем 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
Как этого добиться?