GridView的CSS外观和样式

时间:2015-03-07 19:15:21

标签: asp.net gridview

 <tr>

            <td>

                <asp:UpdatePanel ID="UpdatePanelKitsMaster" runat="server" UpdateMode="Conditional">

                    <ContentTemplate>

                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false"  AllowPaging="true" OnPageIndexChanging="grdvSearch_PageIndexChanging" DataKeyNames="ClinicalRate">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:RadioButton ID="RadioButton1" runat="server"
                                            CommandName="Select" onclick="RadioCheck(this);" />
                                        <asp:HiddenField ID="HiddenField1" runat="server"
                                            Value='<%#Eval("ClinicalRate") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField ItemStyle-Width="150px" DataField="Name"
                                    HeaderText="SubContractor Name" />
                                <asp:BoundField ItemStyle-Width="150px" DataField="ID"
                                    HeaderText="SubContractor ID" />
                                <asp:BoundField ItemStyle-Width="150px" DataField="Title"
                                    HeaderText="Title" />
                                <asp:BoundField ItemStyle-Width="150px" DataField="Address"
                                    HeaderText="Address" />
                            </Columns>
                        </asp:GridView>

                    </ContentTemplate>
                </asp:UpdatePanel>

            </td>
        </tr>

在上面的网格视图中,我没有网格视图的任何样式或css类,但我的网格视图显示如下...

请告知网格视图css有什么问题,以及如何将常规或经典样式应用于网格视图

enter image description here

0 个答案:

没有答案