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
105
Dynamic columns
posted

Does anyone have a sample on adding/removing dynamic columns from a XamDataGrid? I have 4 fixed column then I want to Dynamically add or remove checkbox columns from the end of the Grid.

 

  • 5124
    posted

    Would you be able to get away with hiding/showing checkbox columns?  In such a case, you could probably use a Binding object on the Visibility property of the columns in question, along with a Boolean-to-Visibility converter is they are shown/hidden based on a Boolean value in your data.

    If this approach would not work, please explain in more detail what you need to accomplish, including what the presence of the dynamic checkbox columns would depend on.

    Thanks,