J
Jo
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
messagebox):
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat=server
Text="Delete" CommandName="Delete"
OnClientClick="return confirm('Sure?!?')"/>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField ....>
....
</Columns>
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!
Jo
I have a GridView with AutoGenerateEditButton="True". Next to it, I've
created a delete-button myself (just to take advantage of a
messagebox):
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat=server
Text="Delete" CommandName="Delete"
OnClientClick="return confirm('Sure?!?')"/>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField ....>
....
</Columns>
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!
Jo