Click here to Skip to main content
14,643,391 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have one form. I want to split in to three columns. The 1st column contains collapsible panel seperate functionality. 1st column I used <table><tr><td><div><panel> and closed </panel></div></td>

2nd and 3rd column contain grid view data <td><gridview></gridview>

When i collapse first column <td>then second column <td>also collapsed. but, it should not like that. When i coolapse first panel then second and third column remain the same place (second and third column should not
collapse) How to do that..?

My code:

        <div id="dlg" class="dialog" style="width: 460px">
            <div class="header" style="cursor: default">
                <div class="outer">
                    <div class="inner">
                        <div class="content">
                            <h2>Civil &amp; Structural Employees (Regular)</h2>
            <div class="body">
                <div class="outer">
                    <div class="inner">
                        <div class="content">
                            <asp:Panel ID="pnlEngDesig" runat="server" CssClass="grid">

<asp:UpdatePanel ID="pnlUpdate" runat="server">
        <asp:GridView Width="100%" AllowPaging="True" ID="gvEngDesig" AutoGenerateColumns="False"

        DataSourceID="sqlDsEngDesig" runat="server" ShowHeader="False" OnRowCreated="gvEngDesig_RowCreated">
                    <asp:Panel CssClass="group" ID="pnlEngDesig" runat="server">
                    <asp:Image ID="imgCollapsible" CssClass="first" ImageUrl="~/GridImg/plus.png"

                    Style="margin-right: 5px;" runat="server" /><span class="header">

                    <%# Eval("emp_Design")%>

                    <asp:SqlDataSource ID="sqlDsEngDesig" runat="server" ConnectionString="<%$ ConnectionStrings:MPP %>"

                    SelectCommand="Select emp_number,emp_name+' '+emp_initial as name,emp_designation,Manpower_Division_ID
                    from idpeapp.dbo.view_employee where emp_dept =16 and Manpower_Division_ID=@Manpower_Division_ID
                    and emp_number not in (select emp_number from csMPExcludedList) order by emp_name">
                            <asp:Parameter Name="Manpower_Division_ID" Type="String" DefaultValue="" />

                    <asp:Panel Style="margin-left: 20px; margin-right: 20px" ID="pnlList" runat="server">
                        <asp:GridView AutoGenerateColumns="false" CssClass="grid" ID="gvOrders" DataSourceID="sqlDsEngDesig"

                            runat="server" ShowHeader="true" EnableViewState="false" />

Updated 11-Jul-11 9:59am
gani7787 9-Jul-11 11:45am
any help. pls..

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Sounds feasible to me. I don't see what you're asking, without any code. Yes, it sounds reasonable and if it looks OK, then it's working.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100