|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Gridview SortingI have sorting enabled on a gridview which changes the header text to a
hyperlink. I need to specify the hyperlink style (color specifically). I can't globally set the hyperlink style at the page level due to differing requirements throughout the page. I can't figure out how to change this when I enable sorting. Any help? Thanks! The CSS2 specification allows a syntax for descendants and child selectors
http://www.w3.org/TR/REC-CSS2/selector.html#descendant-selectors So if one adds a HeaderStyle in the GridView markup: <HeaderStyle cssClass=â€GridViewHeaderâ€/> Then one can format the links in the header using the descendants selectors like this: <style> ..GridViewHeader a:link{/* style definition */} ..GridViewHeader a:hover{/*style definition */} ..GridViewHeader a:visited {/*style definition */} </style> Show quoteHide quote "Matt" wrote: > I have sorting enabled on a gridview which changes the header text to a > hyperlink. I need to specify the hyperlink style (color specifically). I > can't globally set the hyperlink style at the page level due to differing > requirements throughout the page. I can't figure out how to change this when > I enable sorting. Any help? Thanks!
programmatically copy table to another application
What functionality does Infragistics controls offer, which don't come with VS .NET 2005? grid postback newbie to creating web controls Code to select item in dropdown populated using TableAdapter Referencing controls inside Wizard control Closing window/page Problem in Setting SelectedValue for DropdownList in Form Datagrid Adding a Directive to a dynamically created Template Column on gri |
|||||||||||||||||||||||