private void UnboundDataSource_ValuePushed(object sender, DevExpress.Data.UnboundSourceValuePushedEventArgs e) { var ind = e.RowIndex; if (e.PropertyName == "UnboundFirstName") { vm.ListPerson[ind].FirstName = (string)e.Value; } if (e.PropertyName == "UnboundAge") { vm.ListPerson[ind].Age = (int)e.Value; } if (e.PropertyName == "UnboundGroup") { vm.ListPerson[ind].Group = (bool)e.Value; } }
// This event is generated by Data Source Configuration Wizard void unboundSource1_ValuePushed(object sender, DevExpress.Data.UnboundSourceValuePushedEventArgs e) { // Handle this event to save modified data back to your data source // something = e.Value; /* TODO: Propagate the value into the storage.*/ }