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
headings Bid and Expense underneath. Is that possible and how do I do that?

Advertisements

During the PreRender event you can create a new datagrid header item. Add
one cell to it and tell the cell to span two columns. Add that to the
header. Insert this as the first item of the datagrid Here's some code:

"William Gower" <> wrote in message
news:...
>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
> headings Bid and Expense underneath. Is that possible and how do I do
> that?
>
>

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!