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
190
Disable a Row
posted

Hi,

All rows should be visable, but I would like to disable some of those.
There is a sample on the net for a xamDataGrid: http://ko.infragistics.com/community/forums/t/25612.aspx

I would like to achive basicly the same, but using the xamGrid instead of the DataGrid.

 

 

Parents
  • 22015
    posted

    Hello Konstantin,

     

    Thank you for your post!

     

    I have been looking into it and have created a small sample application for you. In the sample application I have a simple XamGrid bind to a collection. In the resources of the XamGrid I am creating a Style with a DataTrigger. I have bind the trigger to an Age property. Depending of the Value of this property I enable/disable the row.

    In order for the style to apply I have handled the CellControlAttached event of the XamGrid. In the handler of the event I get the Control of the Row(the CellsPanel) and apply the style.

     

    Please find the attached sample application and feel free to let me know if you have any further questions on this matter.

    Grid_DisableRows.zip
Reply Children