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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

117620 Nov 17,2014 10:48 AM Nov 18,2014 07:27 AM WPF 1
loading
Tags: GridDataControl
Shwe
Asked On November 17, 2014 10:48 AM

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


Thanks

Ashok N [Syncfusion]
Replied On November 18, 2014 07:27 AM

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.

Thanks,

Ashok


CONFIRMATION

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.

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.

;