title: Loop into next column of Ultragrid
body: <p>I am using foreach to loop into a grid by columns and while looping into one column i have to do a validation and loop into next visible column which is the validation and reset the image of the cell of the column. </p>
  
  <p>//Code</p>
  
  <pre><code>            For Each col In Me.TransactionsGrid.Rows.Band.Columns
  
                  If (col.Hidden = False) Then
  
                      'Get the first cell of the first column in the grid
                      cell= row.Cells(col.Index)
  
                      'Set the cell image
                      cell.Appearance.Image = My.Resources.Tran_comment_161
                      cell.Appearance.ImageHAlign = HAlign.Right
                      cell.Appearance.ImageVAlign = VAlign.Top
  
  
                      'Loop in to the next visible column and reset the image of the cell
                          //Code here
                      cell= row.Cells(UltraGridColumn.Index + 1)
  
                      'Reset the cell image
                      cell.Appearance.ResetImage()
  
                      Exit For
                  End If
              Next
  </code></pre>
  
  <p>How can i achieve this?</p>