I am using Datagrid, and I don't want to use the header fetched from the database. How can I specify a header myself?
Printable View
I am using Datagrid, and I don't want to use the header fetched from the database. How can I specify a header myself?
Set AutoGenerateColumns = False and create your own columns in the HTML view. Inside your <asp:datagrid> element you would have <columns> and create columns of type BoundColumn, TemplateColumn, EditCommandColumn, HyperlinkColumn, or ButtonColumn.
Then you can set the HeaderText to whatever text you want.
Look for tutorials on DataGrids.