With a flag to check which column is selected, this code works fine.
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
If (blnFlag) Then
Dim i = 0
For Each UltraGridColumn In Me.TransactionsGrid.Rows.Band.Columns
'Get the first cell of the column in the grid
UltraGridCell = UltraGridRow.Cells(UltraGridColumn)
If (UltraGridColumn.Hidden = False And i = 0) Then
'Set the cell image
UltraGridCell.Appearance.Image = My.Resources.Tran_comment_161
UltraGridCell.Appearance.ImageHAlign = HAlign.Right
UltraGridCell.Appearance.ImageVAlign = VAlign.Top
i += 1
Else
'Reset the image if other column
UltraGridCell.Appearance.ResetImage()
End If
Next
End If