We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change GridDataVisibleColumn orders after drag and drop in GridDataControl?

Thread ID:





117620 Nov 17,2014 03:48 PM UTC Nov 18,2014 12:27 PM UTC WPF 1
Tags: GridDataControl
Asked On November 17, 2014 03:48 PM UTC

         Can you help me how to change GridDataVisibleColumn orders after drag and drop in GridDataControl programmatically?


Ashok N [Syncfusion]
Replied On November 18, 2014 12:27 PM UTC

Hi Shwe,

Thank you for contacting Syncfusion Support.

We have analyzed your query but we are unable to understand your query clearly. Could you please share more details regarding your query, that would be more helpful for us to give better solution? If you want to rearrange the VisiableColumn position programmatically , you can use this.dataGrid.VisibleColumns.Move method. Please refer the following code snippet to achieve this requirement:

C# code snippet:

private void Button_Click(object sender, RoutedEventArgs e)


    this.dataGrid.VisibleColumns.Move(2, 3); //give the index position Move(int fromIndex, int toIndex)


Please let us know if you require further assistance.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon