Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can you change the style of DetailsView Edit and Delete links?

Status
Not open for further replies.

Cineno

Programmer
Jul 24, 2006
142
US
I know that you can change the style of the DetailsView CommandRowStyle, but what if I want to change the style of the actual Edit and Delete links? Can you access those?

I'd rather not use images, and I'd like to have my Edit and Delete links match the linkbutton CSS I've already created.
 
In the CommandField Row of the DetailsView, you can utilise the ControlStyle-CssClass property.
e.g.
Code:
ControlStyle-CssClass="Staffing_Manage_Cost_Centres_Selected"
And then in CSS 

.Staffing_Manage_Cost_Centres_Selected
{
 background-image:url(../../Images/yellow-background.jpg);
 border:solid 1px black;
}

I am using an image, but you can use whatever propertiers you like.

There has to be a pony in this pile of s*%t somewhere.
 
Thank you! That's exactly what I needed!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top