Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Change style of Edit-button in GridView?

Thread Tools

Change style of Edit-button in GridView?

Posts: n/a
Hi all,

I have a GridView with AutoGenerateEditButton="True". Next to it, I've
created a delete-button myself (just to take advantage of a

<asp:LinkButton ID="LinkButton1" runat=server
Text="Delete" CommandName="Delete"
OnClientClick="return confirm('Sure?!?')"/>
<asp:BoundField ....>

In my stylesheet I've defined that a link should be blue.

In practice: the GridView is shown with the "edit"-button the same
color as the gridview-data (black) and the "delete"-button is blue.

How can I change the appearance of the edit-button?

And a second question: is it possible to get a GridView with the
edit-column at the end in stead of at the beginning of all columns? I
want to use the AutoGenerateEditButton="True" because it's simple to
work with.

Please, anyone who can help me with this?

Thank you in advance!

Reply With Quote
Posts: n/a
I'm having exactly the same problem, today too

Reply With Quote
Posts: n/a
The solution seems to be setting the "AutogenerateEditButton" to false,
and adding an "Edit,Update,Cancel" CommandField column.

Reply With Quote
Posts: n/a

Thanks for you answer.
I did the same and it works fine and as simple as the
AutoGenerateEditButton, with more functionality (e.g. to use a button
or image in stead of a link)


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
A Paradise DNS address change? What change? There was no change. Tony Neville NZ Computing 7 09-22-2006 01:02 PM
Opera won't change the style information when I change classname torbs Javascript 2 05-02-2006 07:29 AM
DataGrid header style inconsistent with sortable column style ASP .Net 0 10-14-2005 12:13 AM
All style tags after the first 30 style tags on an HTML page are not applied in Internet Explorer Rob Nicholson ASP .Net 3 05-28-2005 03:11 PM
Need help with Style conversion from Style object to Style key/value collection. Ken Varn ASP .Net Building Controls 0 04-26-2004 07:06 PM