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
check if the columns in ur datatable are read only
Thanks, it was indeed there...
my problem was this one ---> tableSource.Columns[X].ReadOnly
((System.Data.InternalDataCollectionBase)(tableSource.Columns)).IsReadOnly
((System.Data.InternalDataCollectionBase)(tableSource.Rows)).IsReadOnly
this.dgVue.DisplayLayout.Bands[0].Override.AllowUpdate
Now I need to find the way to modify that value.. ;D
Thanks again.