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
1080
Programmatically select child record
posted

I'm using Version 9.2.20092.2049.

I have a hierarchical XamDataGrid with Parent and Child records (Hierarchy has only two levels).If I've select a record on the first level, I can set it active by

xamMyDataGrid.Records[ParentRecordIdx].IsActive = true;
xamMyDataGrid.BringRecordIntoView(xamMyDataGrid.Records[ParentRecordIdx]);

If I want to select a child record do it in a similar way by calling

xamMyDataGrid.Records[ParentRecordIdx].ViewableChildRecords[ChildRecordIdx].IsActive = true;
xamMyDataGrid.BringRecordIntoView( ....

But this time the record is not selected. The background color is not changed and the triangle on the left is missing.

Do child record need special treatment? What could be the cause of the problem?

Thanks in advance for all answers.

 

Markus