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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

datagrid button column question 1

Status
Not open for further replies.

lfc77

Programmer
Aug 12, 2003
218
0
0
GB
In a datagrid, is it possible to change the colour of a button column link to make it different from the forecolor of the rest of the datagrid?

<asp:ButtonColumn ButtonType=&quot;LinkButton&quot; Text=&quot;Append&quot; CommandName=&quot;Append&quot; />

I want to make the hyperlink text 'Append' a different colour to that of the datagrid forecolor. Can anybody help?


Cheers,

lfc77

 
I do this through a stylesheet.

Define your style in a style sheet, style.css is the standard one VS.NET creates.

Then use <asp:ButtonColumn ButtonType=&quot;LinkButton&quot; Text=&quot;Append&quot; CommandName=&quot;Append&quot; CssClass=&quot;STYLENAMEHERE&quot;/>

This will then add the style to the text.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top