How to name (not bounded) gridControl''s column

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 :)
Allon

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

1 Reply

RC Rajadurai C Syncfusion Team September 16, 2009 12:01 PM UTC

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";


Regards,
Rajadurai

Loader.
Up arrow icon