private void datagrid_CurrentCellValueChanged(object sender, CurrentCellValueChangedEventArgs e) { //You can set the IsEdited as True for edited record here. (e.Record as OrderInfo).IsEdited = true; } |
Hi,
Your solution works fine. But how can i do the same in CurrentCellEndEdit event?
private void datagrid_CurrentCellEndEdit(object sender, CurrentCellEndEditEventArgs e) { var recordIndex = this.datagrid.ResolveToRecordIndex(e.RowColumnIndex.RowIndex); if (recordIndex >= 0) { if (this.datagrid.View.TopLevelGroup != null) { //Get the record from TopLevelGroup.DisplayElements. var data = (this.datagrid.View.TopLevelGroup.DisplayElements[recordIndex] as RecordEntry).Data; //You can set the IsEdited flag as true here for Grouping cases. (data as OrderInfo).IsEdited = true; } else { var data = (this.datagrid.View.Records[recordIndex] as RecordEntry).Data; (data as OrderInfo).IsEdited = true; } } } |