GridView sorting

I

IT

Hi
I use GridView in ASP.NET 2.0. When I set property AllowSorting, style of
header is changed. There appear LinkButtons with default style (blue
ForeColor). I need change ForeColor this LinkButtons only in one GridView,
but I dont know how. Anybody knows?
Mac
 
D

Dr. Know

IT said:
Hi
I use GridView in ASP.NET 2.0. When I set property AllowSorting, style of
header is changed. There appear LinkButtons with default style (blue
ForeColor). I need change ForeColor this LinkButtons only in one GridView,
but I dont know how. Anybody knows?
Mac

Not sure I completely understand your questions, but try adding these
to your series of control definitions:

<HeaderStyle BackColor="#990000" Font-Bold="True" Font-Size="12px"
ForeColor="#FFFFFF" HorizontalAlign="Left" Height="22px" />

Change as appropriate.

FWIW,

Dr. Know
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top