Hi, Carl,
If the DataGrid has AutoGenerateColumns set to false - you can set the
HeaderText for each of the columns to whatever you want.
If AutoGenerateColumns is true (it is true by default, that is - if you
don't specify it it is true) the header text is taken from the corresponding
column of the DataSource. So, if your DataSource is a DataTable (or a
DataView of a DataTable) you can alter the header texts by changing the
corresponding Columns' ColumnName property of the DataTable.
Hope this helps
Martin Dechev
ASP.NET MVP
"Carl" <ca***************@yahoo.com> wrote in message
news:Oq**************@tk2msftngp13.phx.gbl...
How can change the Header of a Datagrid?
for example: dpr_id change to dprno
thanks,
Carl