Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > GridView Formatting ?

Reply
Thread Tools

GridView Formatting ?

 
 
luqman
Guest
Posts: n/a
 
      12-05-2007
How can I convert the following code to CSS Style Sheet, so that I can apply
this style to other GridView Controls ?

asp:GridView ID="GridView1" runat="server" CellPadding="4"
ForeColor="#333333" GridLines="None">
<FooterStyle BackColor="#5D7B9D" Font-Bold="True"
ForeColor="White" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<EditRowStyle BackColor="#999999" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True"
ForeColor="#333333" />
<PagerStyle BackColor="#284775" ForeColor="White"
HorizontalAlign="Center" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True"
ForeColor="White" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView>

Best Regards,

Luqman


 
Reply With Quote
 
 
 
 
Jayakrishnan
Guest
Posts: n/a
 
      12-05-2007
luqman wrote:
> How can I convert the following code to CSS Style Sheet, so that I can apply
> this style to other GridView Controls ?
>
> asp:GridView ID="GridView1" runat="server" CellPadding="4"
> ForeColor="#333333" GridLines="None">
> <FooterStyle BackColor="#5D7B9D" Font-Bold="True"
> ForeColor="White" />
> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
> <EditRowStyle BackColor="#999999" />
> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True"
> ForeColor="#333333" />
> <PagerStyle BackColor="#284775" ForeColor="White"
> HorizontalAlign="Center" />
> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True"
> ForeColor="White" />
> <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
> </asp:GridView>
>
> Best Regards,
>
> Luqman
>
>

There is an option to create a skin file for all control. Just paste the
above code in skin file and use <%@ Page Theme="theme1" in aspx file

Jay
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView Hierarchical View - Gridview in Gridview =?Utf-8?B?bWdvbnphbGVzMw==?= ASP .Net 1 05-09-2006 06:48 PM
Gridview Item formatting washoetech ASP .Net 3 09-30-2005 01:06 AM
Formatting gridview rows based on data Not Me ASP .Net 0 09-23-2005 12:03 PM
GridView Formatting sck10 ASP .Net 5 10-18-2004 01:30 AM
Need formatting options menu for formatting hard drive Mark T. Computer Support 3 11-24-2003 11:50 PM



Advertisments