Having 2-row customized header within the DataGrid

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default Having 2-row customized header within the DataGrid

    Hi,

    I am trying to create a page in ASP.NET with the DataGrid control while
    looking to my previously programmed ASP pages with ordinary HTML tables.

    The problem is that I cannot find a way to create a custom header to my
    table emitted from the DataGrid control. It has several columns some of
    which are like subcategories of a parent category. Like this:

    **********************
    * PERSON *
    **********************
    * First Name * Last Name *
    **********************
    * {data} * {data} *

    i.e. with simple plain HTML table it's quite possible, yet it seems that
    this is not with the ASP.NET DataGrid. I've tried with a HTML table just
    glued to the top of the DataGrid but it's not the same effect - it's quite
    obvious. The other thing I thought is having a template column and write
    both FirstName & LastName in ONE Column. However still the question of
    putting an additional top row to the header remains.

    Has anybody got a solution to this issue?

    Thank you,

    Martin Raychev


    Martin Raychev Guest

  2. Similar Questions and Discussions

    1. Need help on creating customized visual datagrid
      Hi all, I am new to Flex and just downloaded the trial version of Flex Builder 3 to test it. Basically, what I need is a visual representation of...
    2. how to turn off DataGrid header
      I want to show the column, yes. I just don't want to show the column's header. Was hoping to do this in the .aspx and not the code behind....
    3. Multi row header in Datagrid
      I have two columns in my datagrid, Hours Bid and Hours Expense. I would like to have the word Hours span both columns and then just have the column...
    4. datagrid header
      Is it possible to have an overall header that spans across all columns? An example would be a class schedule for student Ben. |Ben |English ...
    5. DataGrid header and <TH>
      Hello Vaclav, You might use the HeaderStyle of the DataGrid which will create Th on the client side. You can also attach style attribute to this...
  3. #2

    Default Re: Having 2-row customized header within the DataGrid

    Your post went unanswered. Have you resolved this issue?

    --
    Regards,
    Alvin Bruney [ASP.NET MVP]
    Got tidbits? Get it here...
    [url]http://tinyurl.com/3he3b[/url]
    "Martin Raychev" <marty_gov@hotmail.com> wrote in message
    news:uGiaTj%239DHA.2396@TK2MSFTNGP10.phx.gbl...
    > Hi,
    >
    > I am trying to create a page in ASP.NET with the DataGrid control while
    > looking to my previously programmed ASP pages with ordinary HTML tables.
    >
    > The problem is that I cannot find a way to create a custom header to my
    > table emitted from the DataGrid control. It has several columns some of
    > which are like subcategories of a parent category. Like this:
    >
    > **********************
    > * PERSON *
    > **********************
    > * First Name * Last Name *
    > **********************
    > * {data} * {data} *
    >
    > i.e. with simple plain HTML table it's quite possible, yet it seems that
    > this is not with the ASP.NET DataGrid. I've tried with a HTML table just
    > glued to the top of the DataGrid but it's not the same effect - it's quite
    > obvious. The other thing I thought is having a template column and write
    > both FirstName & LastName in ONE Column. However still the question of
    > putting an additional top row to the header remains.
    >
    > Has anybody got a solution to this issue?
    >
    > Thank you,
    >
    > Martin Raychev
    >
    >

    Alvin Bruney [MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139