3

Hai all,

How to change devexpress gridconrol column header caption using c#. please help

Vyasdev Meledath
  • 8,926
  • 20
  • 48
  • 68

1 Answers1

5

This can be done using the following code in the Page_Load event:

ASPxGridView1.Columns[0].Caption = "Some Value";
DevExpress Team
  • 11,338
  • 2
  • 24
  • 23
  • sorry,am using win forms xtragrid control.For that this code enough...? – Vyasdev Meledath Sep 21 '10 at 03:52
  • 1
    I wrote this code for the ASPxGridView, as ASP.NET grid control. If you are using the XtraGrid, the code should be: gridView1.Columns[0].Caption = "Some Caption"; – DevExpress Team Sep 21 '10 at 06:06
  • 1
    While trying out this solution I noticed that it would work only if the Caption property on the column object was blank to begin with. – Maciej Jul 06 '12 at 21:58