Hi
In a bound grid, when one column is edited by the user I need its value to be copied to another column of the grid. How can I achieve this?
Thanks
Regards
PS: Actually I will be changing the value slightly before assigning it to the second column but for simplicity I am skipping this in my question.
Hello, There is no reason for the events to be not fired, if you set them correctly. Anyway the best event that you need to handle in your case is AfterExitEditMode, This will allows you retrieve the value from the cell only when the user finished editing. You can use the following line to retrieve the value form the edited cell :ultraGridData.ActiveCell.ValueThe AfterCellUpdate and CellChange events are fired after every single change in the cell such as inserted character.If you still have trouble to handle the AfterCellUpdate, CellChange and AfterExitEditMode, If possible, please attach the test project so we can take a look.Best regards,Dimi Developer Support EngineerInfragistics Inc.
Try InitializeRow
Thanks. For some reason CellEdit event is not firing, I have checked using break point. Tried using AfterCellUpdate but that is not firing either.Thanks again.Regards
Use the CellChange event. Check that e.Cell.Column.Key is the right one and write:
e.Cell.Rows.Cells[copyToColumnName].Value = e.Cell.Value