Hello,
I have a master-detailed UserControl with a XamDataGrid in the detailed part (with a binding on the DataSource).
I need to get the Editor of a cell once the current item of the master part has changed.I tried to use CellValuePresenter.FromRecordAndField(...) but the result is null. I guess I'm using it too early but I can't find any event on the grid that I could use to perform the operation.
I also tried to set the property "RecordContainerGenerationMode" to "PreLoad" as described in another forum's thread but with no success.
Please could you provide any help ?Thanks.
Can you provide the code of the method (RecordActivated) that you are getting a null CVP or a sample that reproduces the issue?
My "master" is also a XamDataGrid and I tried to use the RecordActivated event of this grid.
I also a lot of events coming from the "detailed" grid but with no success.
Thanks
It could be too early or the CellValuePresenter is not visible, which will also return null, because of the default virtualization settings.
Which event are you using to get the CVP in ?