Saturday, May 22, 2010

How can I add a tablestyle to a datagridview in C#.net 2005?

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

No comments:

Post a Comment