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
  • 30945
    Verified Answer
    Offline posted in reply to edukondalu

    Hello,

     

    Thank you for your reply. I have been looking into it and I can suggest passing the columns collection of the XamGrid as parameter of the Command and in the execute method of the command to loop trough the columns in the collection and if the key of the column is in the list of the columns that should be removed, you can set its Visibility to the appropriate value. I have modified the sample application I have sent you in order to implements this approach.

     

    Please let me know if I can further assist you on the matter.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

     

Children