日期:2014-05-17  浏览次数:20439 次

两个gridview的对齐
    <table><tr><td>
             <asp:GridView ID="gvWorkTime1_1" runat="server" AutoGenerateColumns="False" 
                CellPadding="2" Width="492px" Font-Names="Arial"  Height="120px"
                onprerender="gridView_PreRender1_1">
           
            <Columns>
        
            <asp:BoundField   HeaderText="参观时间" HeaderStyle-Width="195" DataField="work_begin_time"   >
<HeaderStyle   Width="195px"></HeaderStyle>
            </asp:BoundField>
                <asp:BoundField  HeaderText="" HeaderStyle-Width="195" DataField="end_time">
                 
<HeaderStyle Width="195px"></HeaderStyle>

                    <ItemStyle CssClass="DownloadsItem" Width="60px"></ItemStyle>
                </asp:BoundField>
                 </Columns>
                </asp:GridView></td><td>
                <asp:GridView ID="gvWorkTime1_2" runat="server"
                AutoGenerateColumns="False"  CellPadding="2" Width="495px" Font-Names="Arial" 
                onprerender="gridView_PreRender1_2" EnableTheming="False">
               <Columns> <asp:BoundField HeaderText="入场时间"  DataField="work_begin_time">
                    
                    <ItemStyle CssClass="DownloadsItem" Width="350px"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="work_end_time" HeaderText="">
             
                    <ItemStyle CssClass="DownloadsItem" Width="350px"></ItemStyle>
               &nbs