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.

How to add an unbound column as the first column

Thread ID:

Created:

Updated:

Platform:

Replies:

63556 Jul 5,2007 06:19 AM Jul 5,2007 07:50 AM Windows Forms 1
loading
Tags: Grouping
Paul Sullivan
Asked On July 5, 2007 06:19 AM

Hi,
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 07:50 AM

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

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

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.

;