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

Reorder Columns in a GridControl at Design Time

Thread ID:

Created:

Updated:

Platform:

Replies:

54474 Jan 9,2007 07:36 PM UTC Jan 9,2007 08:33 PM UTC WinForms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 9, 2007 07:36 PM UTC

Hi,
I'm sure I'm missing something basic here but I have a GridControl in which I need to move the last column to being the first column.

I thought that I could just drag and drop the column in the design editor to its new place but the control interprets the action as an add row request.

so, given these columns in my grid at design-time:

+---+---+---+
|_1_|_2_|_3_|


I want to end up with:

+---+---+---+
|_3_|_2_|_1_|

Is there a trick to doing this simply or do I have to redefine the column properties for the two columns I want to switch?

I'm sure this is a doh! moment but I'm lost. If needed, the version I am using is 4.201.0.37

Thanks in advance!





Administrator [Syncfusion]
Replied On January 9, 2007 08:22 PM UTC

Try this.

At Design Time, right-click the grid and choose the Edit command (or click the Edit verb under the propertygrid).

When the intaractive design window opens, click the column header to select the column you want to move. Then mousedown on the selected column header and drag it to th enew location.

This assumes that the grid.AllowSelections flag includes Columns and the grid.AllowdragSelectedCols is true. (If these properties are not true in your application, you can temporarily set them at design time to allow the moving of this column).

Administrator [Syncfusion]
Replied On January 9, 2007 08:33 PM UTC

Thanks Clay,

I had the AllowDragSelectedCols Property property set to false (or rather, I guess that's the default behavior, which makes sense). Once I set that, I was able to do the reordering.

THANK YOU!



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.

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

;