|
-
May 3rd, 2004, 07:54 AM
#1
Thread Starter
Frenzied Member
Datagrid and header
I am using Datagrid, and I don't want to use the header fetched from the database. How can I specify a header myself?
-
May 3rd, 2004, 10:18 AM
#2
Frenzied Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|