I’m having some issues with the edit button inside a gridview. When you click edit in the gridview, the cancel button gets the same css class as the edit button. So my cancel button gets the same edit icon.
I want to change this so that the cancel button gets a different css-class. So I can give it the right icon instead of an edit icon
<asp:CommandField ShowEditButton="True" ButtonType="Button" ControlStyle-CssClass="edit-sprite"></asp:CommandField>
Sumit Kesarwani
23-Aug-2014You could use TemplateFields instead of CommandFields: