title: Get the column number in Ultragrid
body: <p>I have to get the column number in the grid.</p>
  
  <p>Eg: If i have <code>Name</code>,<code>Age</code>,<code>Number</code> as three columns in the grid and i give the <code>headertext</code>(Age) of the column it should return the <code>Number</code>(2) which represents the <code>Age</code> is 2nd column of the grid.</p>
  
  <pre><code>For Each UltraGridColumn In Me.TransactionsGrid.Rows.Band.Columns
      If (UltraGridColumn.Hidden = False) Then
          'UltraGridColumn.Header.Caption
          'Get the cell
           UltraGridCell = UltraGridRow.Cells("Number Here")
      End If
  Next
  </code></pre>
  
  <p>Now here i have to get the column number which is not <code>hidden</code>. I have the <code>headertext</code> of the column and i need the number.</p>
  
  <p>How can i achieve that?</p>