title: How to react to a onclick in an ultragrid
body: <p>I have code that creates an UltraGrid with a column that has the <code>ColumnStyle.Button</code> as it's style. </p>
  
  <pre><code>   private void Grid_InitializeLayout(object sender, InitializeLayoutEventArgs e){
          Grid.ResetEmptySelectedAppearance();
  
          var column =  Grid.SetColumn("Draw Lines", "Draw Lines", 30);
          column.Style = ColumnStyle.Button;
  
          Grid.HideOtherColumns();
      }
  </code></pre>
  
  <p>Now I would like too make it react to being clicked on. I have found <a href="http://help.infragistics.com/Help/Doc/WinForms/2012.1/CLR2.0/html/Infragistics2.Win.UltraWinGrid.v12.1~Infragistics.Win.UltraWinGrid.UltraGrid~ClickCellButton_EV.html" rel="nofollow">this</a> but it does not show me how to bind the variable, usually I can either double click in the visual studio editor (but in this case this only directs me too the <code>Grid_InitializeLayout</code>) or I can go the the item in question and add the function to an <code>OnClick</code> variable, but this one doesn't exist.  </p>
  
  <pre><code>private void Grid_InitializeRow(object sender, InitializeRowEventArgs e)
          var buttoncell= e.Row.Cells["Draw Lines"];
          //something here?
  </code></pre>
  
  <p>this is what I want to call</p>
  
  <pre><code>   private void OnDrawLine(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e)
      {
          Debug.Print("test test");
      }
  </code></pre>
  
  <p>It's probably something trivial but I'm stuck. </p>