Results 1 to 2 of 2

Thread: Datagrid and header

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Question 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?

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276
    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
  •  



Click Here to Expand Forum to Full Width