"Alvin Bruney [MVP]" wrote:
> >> > --------- OverAll Heading ---------
> >> > Heading1 Heading2 Heading3
>
> according to your diagram, you have one header cell stretched across the
> entire grid over Overall heading -----------. well that is the header cell.
>
> you still need headers for each column(heading1, heading2, heading3). i was
> suggesting one approach would be to insert an empty row at position 0 into
> your dataset before binding. then you can customize row 0 on the
> itemdatabound to be the actual column headers 1, 2, 3 etc
>
> --
> Regards,
> Alvin Bruney
> [ASP.NET MVP
http://mvp.support.microsoft.com/default.aspx]
> Got tidbits? Get it here...
http://tinyurl.com/27cok > "Alan Lambert" <AlanLambert@discussions.microsoft.com> wrote in message
> news:AF9017E9-2914-4386-9862-E91F58D1AB55@microsoft.com...
> > Thanks for the reply.
> >
> > Doing the colspan should be no problem but I'm not sure what you mean when
> > you say promote row 1 to a header. Wouldn't row 1 contain the first record
> > of
> > bound data? What would happen to the dat in this row? Or have I completely
> > misunderstood?
> >
> >
> > "Alvin Bruney [MVP]" wrote:
> >
> >> have a look at the columnspan property of the cell, it makes the cell
> >> stretch over the number of columns. you will need to remove the other
> >> cells
> >> before or after you span. additionally you will need to promote row 1 to
> >> a
> >> header. bit of code but not impossible
> >>
> >> --
> >> Regards,
> >> Alvin Bruney
> >> [ASP.NET MVP
http://mvp.support.microsoft.com/default.aspx]
> >> Got tidbits? Get it here...
http://tinyurl.com/27cok > >> "Alan Lambert" <AlanLambert@discussions.microsoft.com> wrote in message
> >> news:6D1C829A-0BA9-4758-85C4-961DEF2E9271@microsoft.com...
> >> >I am writing a web-based reporting tool and using a datagrid to display
> >> > information returned from a database.
> >> >
> >> > I am displaying column headings from bound columns with no problems but
> >> > I
> >> > need to have a heading above some of these that spans severla columns
> >> > e.g.
> >> >
> >> > --------- OverAll Heading ---------
> >> > Heading1 Heading2 Heading3
> >> >
> >> > I can't find a way to do this. Is this possible and, if so, how?
> >> >
> >> > Any help you can give would be very appreciated.
> >> >
> >> > Many thanks.
> >> >
> >> > Alan
> >>
> >>
> >>
>
>