formatting buttons in datagrid

  • Thread starter Thread starter Lerp
  • Start date Start date
L

Lerp

Hi all,

I have several template columns in my datagrid, is there an attribute that
sets the fore color for the text in these buttons...I would like them to be
black instead of the default link colors, or even better yet, can I use
custom images for my buttons and where would I find an example of using
image buttons within a datagrid?


Cheers, Lerp


<asp:TemplateColumn HeaderText="Details">
<ItemTemplate>
<asp:Hyperlink runat="server" Text='Details' NavigateUrl='<%#
"agentdetails.aspx?empid=" &
Server.UrlEncode(Container.DataItem("empid"))%>'/>&nbsp;
</ItemTemplate>
</asp:TemplateColumn>
 
Thank you Eliyahu!



Eliyahu Goldin said:
ForeColor attribute for the text color. Since you have several columns, use
stylesheets and CssClass attribute. Use ImageUrl attribute to attach images.
All these attributes should be set for <asp:Hyperlink> element.

Eliyahu
 
ForeColor attribute for the text color. Since you have several columns, use
stylesheets and CssClass attribute. Use ImageUrl attribute to attach images.
All these attributes should be set for <asp:Hyperlink> element.

Eliyahu
 

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

Similar Threads

ASP.NET Datagrid 1
DataGrid Header Image 2
Hyperlink on a datagrid 1
Hyperlink column in a datagrid 2
Item Template problem in Datagrid 1
Display datagrid records 6
Urgent... datagrid problem 2
BoundColumn 1

Back
Top