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
670
CellValuePresenter return null
posted

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.

Parents
No Data
Reply
  • 69686
    posted

    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 ?

Children