0

I'm trying to make an Edit button in gridview. So far I can only add a delete asp:button but what about edit button? Is there any way I could modify the CommandField to look like asp:button instead of linkbutton?

Any help would be much appreciated. Thanks in advance ;)

2 Answers 2

1

Set the ButtonType attribute to Button

<asp:CommandField  ButtonType="Button"  ShowEditButton="True"  />
Sign up to request clarification or add additional context in comments.

2 Comments

It works! Thanks but it stacked together is there a way I could extend the width of Edit,Delete area?
@Loupi see if this post helps with the width issue. forums.asp.net/t/1318797.aspx/1
1

Yes you can do that. You need to write the CSS for links to look like buttons.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.