gridview style not show during runtime

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lillyehrhart
    New Member
    • Jun 2015
    • 48

    #1

    gridview style not show during runtime

    here is my gridview code for my website.
    Code:
    <itcgv:ITCGridView ID="GridView1" EnableViewState="true" PageIndex="0" ViewStateMode="enabled" EnableSortingAndPagingCallbacks="True" CssClass="GridView" OnPageIndexChanging="GridView1_PageIndexChanging" AllowPaging="true" PageSize="30" AllowSorting="true" OnSorting="gvFreightBills_Sorting" runat="server" CellPadding="1" CellSpacing="2" GridLines="Vertical" HorizontalAlign="Left" AutoGenerateColumns="false" PagerSettings-Position="TopAndBottom" RowStyle-Height="19" DataKeyNames="DATE_ENT,CARRIER,PRO" PagerSettings-Mode="NextPreviousFirstLast">
    
    
                        <AlternatingRowStyle BackColor="#CCCCCC" />
                        <Columns>
                            <asp:CommandField ControlStyle-CssClass="GridViewSelectButton" HeaderStyle-Width="40" ItemStyle-Width="40" SelectText="Select" ShowSelectButton="true" ItemStyle-HorizontalAlign="center"></asp:CommandField>
                            <asp:BoundField ItemStyle-CssClass="GVCol" DataField="SHIP_DATE" HeaderText="Ship Date" SortExpression="tbl_Bills.[Date]" DataFormatString="{0:d}"></asp:BoundField>
                            <asp:BoundField ItemStyle-CssClass="GVCol" DataField="DATE_ENT" HeaderText="Date Ent." SortExpression="tbl_Bills.[DATE ENT]" DataFormatString="{0:d}"></asp:BoundField>
                            <asp:BoundField ItemStyle-CssClass="GVCol" DataField="CARRIER" HeaderText="Carrier" ReadOnly="True" SortExpression="CARRIER" HeaderStyle-Width="40" ItemStyle-Width="40"></asp:BoundField>
                            <asp:BoundField ItemStyle-CssClass="GVCol" DataField="PRO" HeaderText="PRO" ReadOnly="True" SortExpression="PRO"></asp:BoundField>
                            <asp:BoundField ItemStyle-CssClass="GVCol" DataField="spec_fedinv" HeaderText="Invoice No" SortExpression="tbl_bills.[spec_fedinv]"></asp:BoundField>
                            <asp:BoundField ItemStyle-CssClass="GVCol" DataField="SHIPPER" HeaderText="Shipper" SortExpression="SHIPPER" ControlStyle-Width="40" HeaderStyle-Width="40" ItemStyle-Width="40"></asp:BoundField>
                            <asp:BoundField ItemStyle-CssClass="GVCol" DataField="CONS" HeaderText="CONS" SortExpression="CONS" ControlStyle-Width="40" HeaderStyle-Width="40" ItemStyle-Width="40"></asp:BoundField>
                            <asp:BoundField ItemStyle-CssClass="GVCol" DataField="F_B" HeaderText="F B" SortExpression="F_B"></asp:BoundField>
                            <asp:BoundField ItemStyle-CssClass="GVCol" DataField="LOC" HeaderText="Loc" SortExpression="LOC"></asp:BoundField>
                            <asp:BoundField ItemStyle-CssClass="GVCol" DataField="PCS" HeaderText="PCS" SortExpression="PCS" ControlStyle-Width="30" HeaderStyle-Width="30" ItemStyle-Width="30"></asp:BoundField>
                            <asp:BoundField ItemStyle-CssClass="GVCol" DataField="WT" HeaderText="WT" SortExpression="WT" ControlStyle-Width="30" HeaderStyle-Width="30" ItemStyle-Width="30"></asp:BoundField>
                            <asp:BoundField ItemStyle-CssClass="GVCol" DataField="NET_CHGS" HeaderText="NET Chgs." SortExpression="NET_CHGS" DataFormatString="{0:$0.00}"></asp:BoundField>
                            <asp:BoundField ItemStyle-CssClass="GVCol" DataField="DATE_PAID" HeaderText="Date Paid" SortExpression="tbl_Bills.[DATE PAID]" DataFormatString="{0:d}"></asp:BoundField>
                            <asp:BoundField ItemStyle-CssClass="GVCol" DataField="CK_NO" HeaderText="CK No." SortExpression="tbl_Bills.[CK NO]"></asp:BoundField>
                        </Columns>
                        <FooterStyle BackColor="#CCCCCC" />
                        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                        <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NextPreviousFirstLast" NextPageText="Next" PreviousPageText="Prev" />
                        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                        <RowStyle Height="19px"></RowStyle>
                        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                    </itcgv:ITCGridView>
    
    
                    <div style="clear: both;"></div>
    i have attached a screenshot from when i am in design view in visual studio see vsScreenshot

    during runtime, it shows up completely different, like it completely ignores all the style rules. see runtimeScreensh ot

    I am not sure what could be happening here. please help
    Attached Files
Working...