Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
560
Set a CellValue automatically (RecordUpdate)
posted

Hello,

I've got the following scenario: I'm Binding a BindingList of objects to the XAM DataGrid. The User can add new objects via the AddNew Row to the Grid.

All Objects of the List have some common string properties ... and a special ID property which is a combination of the before mentioned string properties.

When I add a new record to the grid, this ID property should be set automatically.( In the added Record and in the Underlying Dataobject.)

I experimented with the RecordUpdating and the RecordUpdated events ... But the records of this events are only readonly.

When I check the Events RecordAdding and RecordAdded a new object in the List will be created but the properties aren't set yet.

-> Is there a possibillity to add a new object  / record with a automatically generated CellValue which is a combination of the other record cell Values?

I'm sorry if this sounds a bit complicated... I couldn't describe it in a better way. Any help would be highly appriciated.

Thanks

 

Parents Reply Children
No Data