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

How to add an unbound column as the first column

Thread ID:





63556 Jul 5,2007 10:19 AM UTC Jul 5,2007 11:50 AM UTC WinForms 1
Tags: Grouping
Paul Sullivan
Asked On July 5, 2007 10:19 AM UTC

In the following code snippet I am binding a GGC to a Dataset then adding an unbound checkbox column to the GGC. This adds the new column to the END of the grid. How do I add it to the START of the grid - i.e. make it the left-most column?

GGC.DataSource = dataset1;
GGC.DataMember = dataset1.Tables[0].TableName;

//adding unbound column and setting type. GGC.TableDescriptor.UnboundFields.Add("Resubmit"); GGC.TableDescriptor.Columns["Resubmit"].Appearance.AnyRecordFieldCell.CellType = "CheckBox";

Administrator [Syncfusion]
Replied On July 5, 2007 11:50 AM UTC

One way to do this is to use the Columns.Move command.

GGC.TableDescriptor.Columns["Resubmit"].Appearance.AnyRecordFieldCell.CellType = "CheckBox";
GGC.TableDescriptor.Columns.Move(gridGroupingControl1.TableDescriptor.Columns.Count - 1, 0);


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

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