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.

Move a grid in code?

Thread ID:

Created:

Updated:

Platform:

Replies:

96706 Sep 29,2010 03:12 PM Oct 6,2010 09:17 AM Windows Forms 1
loading
Tags: GridControl
David Mecteaux
Asked On September 29, 2010 03:12 PM

I would like to move the column "Field1" to column 2 in my gridGroupingControl. I haven't found any code that quite does that.


Nirmal Raja [Syncfusion]
Replied On October 6, 2010 09:17 AM

Hi David,

Thank you for your interest in Syncfusion products.

You can achieve this behavior by removing the specific column form the VisibleColumns collection and insert it into the desired location.

Please refer the code below:
this.gridGroupingControl1.TableDescriptor.VisibleColumns.Remove("Field1"); this.gridGroupingControl1.TableDescriptor.VisibleColumns.Insert(2,"Field1");

Let me know if you have any concern.

Regards,
Nirmal


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.

;