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
470
Hide xamgrid columns at runtime using mvvm pattern
posted

HI all,

I am using infragistics xamgrid with few predefined textcoumns. I have a button in the same screen when I click on the button I need to hide 2 columns in the xamgrid. I want to do it through it's viewmodel class

Can any one please provide me the resoution for my issue or any existing sample?

Thanks in advance.

Parents Reply Children
  • 30945
    Verified Answer
    Offline posted in reply to edukondalu

     

    Hello,

     

    Thank you for your feedback. I have been looking into the scenario that you have described and I can suggest modifying the approach I have suggested with my previous reply. Since the XamGrid is in a view (I assume it is an UserControl), you can bind the CommnadParameter of the Button to that view, using ElementName binding and use a converter, in which you can find the XamGrid and return its Columns collection. I have modified the sample application of my previous reply, in order to implement this approach.

     

    Please let me know if you need any further assistance on the matter.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support