Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Datagrid Styles


Message #1 by "Ken P" <kpfeiffer@c...> on Wed, 29 Jan 2003 01:47:54
Yeah that will work. But the problem is a page can have many different 
links on it.  Some links are in a table with say a blue back ground other 
with a gray background etc... So I really can't rely on a mater style for 
links.  What seems to work is using a forground color in the header style -
 that will change the color of the hrefs for that row and the look is 
passable - what I usally do is put a hover style on my links to underline 
and change the color - its a nice effect - bummer its not as easy to to 
in .net - I'm sure thare is a way to get to it but you may have to plug 
into the html rendering events.. not fun... Anyone else have any ideas?

> I think if you set your styles in header of html :
<link rel="stylesheet" href="Styles/Style.css" type="text/css">

Then all href's use this style, even the headers in datagrid. It works for
me, but I wouldn't mind more accessability either.

Mike

-----Puvodní zpráva-----
Od: Ken P [mailto:kpfeiffer@c...]
Odesláno: Wednesday, January 29, 2003 1:48 AM
Komu: ASPX_Professional
Predmet: [aspx_professional] Datagrid Styles


Hello - all I have a questions that is just bugging and annoying the hell
out of me.  I have a datagrid with sortable header columns.  I can apply a
style to row and set the foreground color to change the color of the text
that acts as the sortable but thats not enough - how can I access the a
href that the datagrid creates (the sort field) so I can apply a specific
style?  If I apply a header style it only affects the td element - I want
to have control over the a href and put a class = blah.. All I can do now
to keep a consistent look is put in a foreground color - but I'd rather
use a style class.

Is there a way to loop over a collection of datagrid columns check to see
if a column is sortable and if it is set the style of the href?  Thanks!!
---
Change your mail options at http://p2p.wrox.com/manager.asp or
to unsubscribe send a blank email to



  Return to Index