Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
235
How to edit UltraGrid's data?
posted

Hello,

How can I allow update on my UltraGrid for text, valid number and valid dates. I am looking for a way to edit in 3 steps : (1) Double clic a cell (2) Type text  (3) Press Enter to confirm

 

I tried this :

private void ultraGrid1_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
{
    e.Cell.Activate();
    this.ultraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode);
}

it does show the cell like a text box but it doesn't allow me to edit and doesn't work on a date (only a flicker). Can you show me the basic code or tutorial links to make the UltraGrid editable ? Maybe there is more efficient way to update UltraGrid than what I am trying to do?

From what i can read, edit is there by default.. My DataTable DefaultView.AllowEdit is true and the UltraGrid.DisplayLayout.Override.AllowUpdate is true in my design and code. Any other things i should be looking for?

 

Thanks