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.
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.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.