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
1655
Images in XamDataGrid based on condition
posted

Hi,

I want to display a image in the first column based on a condition.

For example: I fetch records which has a criticality feature. If a record is critical then i need to display the critical image for the corresponding row and if the row is not critical then do not display the image.

 

Can you please help me to achieve this.

 

Thanks in Advance.

Varun R

  • 69686
    Suggested Answer
    posted

    Hello Varun,

    You can do that with DataBinding (DataTrigger). You can see an example for that in the XamFeatureBrowser, under XamDataGrid - Custom CellValuePresenter Style - Advanced. In that example, the Image in front of the text in the Team Field is changed according to the text.

    Hope this helps.