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

Columns Header text

Thread ID:





43419 Apr 23,2006 01:56 PM UTC Apr 24,2006 04:07 AM UTC WinForms 1
Tags: GridControl
Eli Gazit
Asked On April 23, 2006 01:56 PM UTC

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.

Administrator [Syncfusion]
Replied On 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


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

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