In the SfDataGrid, when a column has same value in more than one row, you can update all those values in the column at once to a newly changed cell value by handling the CurrentCellValidated event. This event has two arguments, sender and CurrentCellValidatedEventArgs.
The CurrentCellValidatedEventArgs has the following properties,
Here, the CurrentCellValidated event is triggered when current cell moves to another cell. When the MappingName of the Current Cell’s Column is not equal to null and MappingName is CustomerName, then all the cell values that match the old values are changed to new values by using the NewValue and OldValue properties.
The following screenshot displays the updated ComboBox column values.
In the above screenshot, the old value Thomas Hardy is repeated in more than one cell. Thus, Thomas Hardy in the CustomerName column is replaced with the selected value Ana Trujillo. The following screenshot displays the changed value.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:||.NET Framework:||Product Version:|