The GridView takes a CssClass property which can be set declaratively or in Code Behind.
The following Styles can also be used to assign CSS classes to the various Items of a GridView
%26lt;asp:GridView CssClass="class" ID="gvData" runat="server""%26gt;
%26lt;EditRowStyle CssClass="GridClass" /%26gt;
%26lt;AlternatingRowStyle CssClass="AltRowClass" /%26gt;
%26lt;HeaderStyle CssClass="GridHeaderClass" /%26gt;
%26lt;RowStyle CssClass="GridRowClass" /%26gt;
%26lt;FooterStyle CssClass="FooterClass" /%26gt;
%26lt;/asp:GridView%26gt;
cabbage
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment