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

Move a grid in code?

Thread ID:





96706 Sep 29,2010 07:12 PM UTC Oct 6,2010 01:17 PM UTC WinForms 1
Tags: GridControl
David Mecteaux
Asked On September 29, 2010 07:12 PM UTC

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 01:17 PM UTC

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.



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

or the page will be automatically redirected to 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