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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Move a grid in code?

Thread ID:

Created:

Updated:

Platform:

Replies:

96706 Sep 29,2010 07:12 PM UTC Oct 6,2010 01:17 PM UTC WinForms 1
loading
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.

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.

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

;