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. Image for the cookie policy date
close icon

Move a grid in code?

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


1 Reply

NR Nirmal Raja Syncfusion Team 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


Loader.
Live Chat Icon For mobile
Up arrow icon