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
30
XamDataGrid FieldChooser dialog move columns manually and update grid
posted

I would like user able to move column with up/down buttons

User selected column must be visible to the user

I added up/down buttons on the right side of this dialog

Clicking on the up/down arrow button the column should move inside the FieldChooser dialog

when user ticked the selected column checkbox the grid column order sync with FieldChooser dialog column order

Please provide me any sample application to implment this feature

(up/down arrow buttons or drag & drop)

Please help ASAP

Thanks

Kanex.Siva

  • 1500
    Offline posted

    Hello Kanex,

    In order to move columns you can use the following method:

    this.grid1.FieldLayouts[0].FieldItems.Move(oldPosition, oldPosition + 1); <- moving a column to the left.

    during the same event, calling the FieldChooser FieldDisplayOrder will update the order in the FC.

    Regarding selection, from where do you perform it?

    What happens if a column reaches the end? does it go the begining.

    What is the visual confirmation you are looking tor?

    Sincerely,

    Tihomir Tonev
    Associate Software Developer
    Infragistics