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 name (not bounded) gridControl''s column

Thread ID:





90057 Sep 15,2009 09:30 AM Sep 16,2009 08:01 AM Windows Forms 1
Tags: Tools
Asked On September 15, 2009 09:30 AM

Hi, everyone

I'd like to know how can I name gridControl's column.
It needs to be something simple like naming column of not bounded datagridview control in microsoft V.S (something like: myGrid.Columns(2).Name = "clmMyColumnName3").

Thanks in advance :)

My bet was grdMyGrid.ColStyles(3).Name = "clmMyColumnName3", but it hadn't worked.

Rajadurai C [Syncfusion]
Replied On September 16, 2009 08:01 AM

Hi Allon,

Thanks for your interest in Syncfusion Products.

The gridcontrol is an unbound one. Hence it is not possible to set column name explicitly. This grid just displays what the binded data has. In GridGroupingControl and GridDataBoundGrid, this can be achieved.

this.gridGroupingControl1.TableDescriptor.Columns[0].Name = "CustomName";
this.gridDataBoundGrid1.GridBoundColumns[0].HeaderText = "CustomName";



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.