I am a bit confused about validating an added record via xamdatagrid
AllowAddNew
="True" AddNewRecordLocation="OnBottomFixed"
I do not want to add the record until I inspect and validate the values. The RecordAdding or RecordAdded event handlers seem to offer me no such way to do this.
Any suggestions?
Hello,
You can use xamDataGrid1.RecordManager. This way you can get reference of the adding/added record and perform your validation in RecordUpdating event.
Hope this helps
Alex.
Prior to adding a new record I need to look at the previous collection in the grid and inspect it.
In the RecordUpdating Event I am retriving a collection of items from the xamdatagrid. I've tried RecordManager.DataPresenter.DataSource or xamdatagrid.DataSource and surprisingly the new record is already there. I want to inspect the record BEFORE adding it. It seems that the recordupdating event fires AFTER the record has been added. I am still at square one....