Activating a Cell for Edit Mode in UltraGrid

Jason Beres [Infragistics] / Saturday, February 28, 2009

When using a BindingNavigator in conjuction with UltraGrid, at runtime, the BindingNavigator's "Add" button is clicked a row is added and the grid moves to the new row. 

To set the cell to edit via its fieldname, and automatically put the cell in edit mode, use this code: 

private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) 
  {   
    this.ultraGrid1.Rows[this.ultraGrid1.Rows.Count - 1].Cells["My Coluimn"].Activate(); 
    this.ultraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode);            
  }