How can I set the selecteditem based on a known value for a cell? Also, make sure that that the record is visible.
Thanks,Rod
I have same require, too!
I have a "Add Function" , do this over ,I want ActiveRecord can focus on the Add Record, Thanks.
Hello,
You can select a record by getting its ID (index) from another cell by handling the EditModeEnded event for example :
int value = int.Parse(e.Cell.Value.ToString());
and set the record to Active :
xamDataGrid1.Records[value].IsActive = true;
Regarding the ActiveRecord, you can use RecordManager in the XamDataGrid to get reference to the adding record and all other records as a whole.
Hope this helps.
Alex.