I think the best way to solved will be to switch to a ListView and
edit your Templates

the Header Template can look like this

<asp:ListView ID="ListView1" runat="server"
ItemPlaceholderID="ListViewContent">
                                <ItemTemplate>
                                </ItemTemplate>
                                <LayoutTemplate>
                                    <table>
                                        <thead>
                                        <tr>
                                            <th colspan="2">
                                                Header1
                                            </th>
                                            <th colspan="2">
                                                Header2
                                            </th>
                                        </tr>
                                        <tr>
                                            <th>
                                                subheader1
                                            </th>
                                            <th>
                                                subheader2
                                            </th>
                                            <th>
                                                subheader3
                                            </th>
                                            <th>
                                                subheader4
                                            </th>
                                        </thead>
                                        <tbody runat="server"
id="ListViewContent">
                                        </tbody>

                                    </table>
                                </LayoutTemplate>

                                <ItemTemplate>
                                <tr>
                                <td>value1</td>
                                <td>value2</td>
                                <td>value3</td>
                                <td>value4</td>

                                </tr>
                                </ItemTemplate>
                            </asp:ListView>

On Jan 20, 4:48 am, MGO <[email protected]> wrote:
> Hi,
>
> I want to do a gridview with a header in 2 rows but i don't know how
> can i do this.
>
> Sample:
>                 Header1                   |                HEADER2
> Sub Header1.1 | Sub Header1.2 |Sub Header2.1 | Sub Header2.2
>
> Can you help me please?
>
> Thanks all

Reply via email to