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

Columns Header text

Hello. How can I change the column header text without changing the datasource in a GridDataBoundGrid? the command:. grid[0,1].Text = "new text"; Does nothing.

1 Reply

AD Administrator Syncfusion Team April 24, 2006 04:07 AM UTC

Hi Eli, By default, DataBoundGrid doesn''t store any style info properties.You can not set any cell or row specific properties for the DataBoundGrid.You need to provide them on demand in the Model.QueryCellInfo as shown in this KB: http://www.syncfusion.com/Support/article.aspx?id=10351 If you are planning to set any visual style info properties, you need to use the PrepareViewStyleinfo, http://www.syncfusion.com/Support/article.aspx?id=560 Could you try this code to change the HeaderText of the Column.Here is a code snippet this.gridDataBoundGrid1.Binder.InternalColumns[0].HeaderText = "Welcome"; Please let me know if you need any further assistance. Thanks for choosing Syncfusion Products. Regards, Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon