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
240
How to invoke an editor based on underlying object type?
posted

I am working on customizing xamDataGrid to edit categorized collection of name-value pairs, which should look like property grid. How do I configure xaml to invoke custom editor based on object type in the cell?

Thanks.

Parents
  • 30945
    Verified Answer
    Offline posted

    Hello Artem,

    I have created a sample application that demonstrates an approach for achieving your goal. I use DataTriggers in a style for the CellValuePresenter to determine the type of the object that the Cell contains and based on this type I set a different ContentTemplate for the CellValuePresenter.

    Please let me know if this is what you needed or if you require any further assistance on the matter.

     

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    XamDataGridEditorBasedOnType.zip
Reply Children
No Data