/// <summary> /// Raises the <see cref="Syncfusion.UI.Xaml.Grid.SfDataGrid.CurrentCellValidated"/> event. /// </summary> /// <param name="dataGrid"> /// Specifies the corresponding grid . /// </param> /// <param name="column"> /// The corresponding column that was in edit mode. /// </param> /// <param name="oldValue"> /// The cell value before edited. /// </param> /// <param name="newValue"> /// The cell value after editing completed. /// </param> public void RaiseCurrentCellValidatedEvent(SfDataGrid dataGrid, GridColumn column, object oldValue, object newValue) { var e = new CurrentCellValidatedEventArgs(dataGrid) { OldValue = oldValue, NewValue = newValue, Column = column }; DataGrid.RaiseCurrentCellValidatedEvent(e); }
//comentado private void dtGrid_CurrentCellValidated(object sender, CurrentCellValidatedEventArgs e) { //int columnIndex = this.dtGrid.SelectionController.CurrentCellManager.CurrentRowColumnIndex.ColumnIndex; //var mappingName = this.dtGrid.Columns[columnIndex].MappingName; //if (e.Column.MappingName == mappingName) //{ // var orderCollection = dtGrid.ItemsSource as ObservableCollection<Productos>; // foreach (var record in orderCollection) // { // if (record.Referencia == e.OldValue.ToString()) // record.Referencia = e.NewValue.ToString(); // } // this.dtGrid.View.Refresh(); //} }
void cellgrid_CurrentCellValidated(object sender, CurrentCellValidatedEventArgs args) { eventsTxtBox.Text += "\nCurrent Cell validated"; }