【发布时间】:2014-01-19 01:23:19
【问题描述】:
我有一个GridView。我没有在其中添加任何 style ,但它仍然给我蓝色标题标签。我该如何解决它。
我的GridView 如下。
<asp:GridView ID="grdViewApp" runat="server" AutoGenerateColumns="False" DataKeyNames="APPLICATION_ID,APPNAME,APPDESCRIPTION,REMARKS,VERSION,SCHEDULE_ID,AUTHENTICATION_TYPE"
BorderStyle="None" BorderWidth="0px" Width="100%" BorderColor="Transparent" OnRowCommand="grdViewApp_RowCommand"
OnSorting="grdView_Sorting" AllowSorting="true" AllowPaging="true" PageSize="4"
OnPageIndexChanging="grdViewApp_PageIndexChanging" OnRowDataBound="grdViewApp_RowDataBound">
<AlternatingRowStyle CssClass="AltRow" />
<HeaderStyle HorizontalAlign="Left" />
<RowStyle CssClass="Row" />
<Columns>
<asp:TemplateField HeaderText="Edit" ItemStyle-HorizontalAlign="left" ItemStyle-Width="5%">
<HeaderStyle HorizontalAlign="Left" />
<ItemTemplate>
<asp:ImageButton ImageUrl="~/images/edit-icon.png" ID="ImgBtnEditApp" runat="server"
Height="18" Width="18" CommandArgument='<%# DataBinder.Eval(Container, "RowIndex") %>'
CommandName="EditApp" title="Edit Record" />
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" Width="5%" />
</asp:TemplateField>
<asp:BoundField DataField="APPLICATION_ID" HeaderText="ID" ReadOnly="True" SortExpression="APPLICATION_ID">
<ItemStyle Width="15%" HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="AppName" HeaderText="Names" SortExpression="AppName">
<ItemStyle Width="15%" HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="AppDescription" HeaderText="Description" SortExpression="AppDescription">
<ItemStyle Width="15%" HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="Version" HeaderText="Version" SortExpression="Version">
<ItemStyle Width="15%" HorizontalAlign="Left" />
</asp:BoundField>
</Columns>
</asp:GridView>
【问题讨论】: