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
15
Dynamic columns with checkbox
posted

Does anyone have a sample application on adding/removing dynamic columns from a XamDataGrid? I have 5 fixed column then I want to Dynamically add or remove checkbox columns from the end of the Grid. How can i achieve this?

Example:

 

Parents
No Data
Reply
  • 34810
    Offline posted

    Hello Rahul,

    Thank you for your post!

    In order to add and remove checkbox columns to the XamDataGrid dynamically, I would recommend creating a CheckboxField object and adding it to the Fields collection of one of the FieldLayouts of the XamDataGrid. Note, you will need a property path to associate its Name with if you want to have it bound to your underlying data item, but you can also create unbound ones like is demonstrated in the attached sample project.

    I hope this helps you. Please let me know if you have any other questions or concerns on this matter.

    XDGAddAndRemoveColumns.zip

Children