Convert the column in question into a template and then do something like
this:
<ItemTemplate>
<asp:LinkButton ID="lnkDelete" runat="server" CausesValidation="false"
CommandName="Delete" Text="Delete"
OnClientClick="return confirm('Are you sure you want to delete this
record?');" />
</ItemTemplate>
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"J" <> wrote in message
news: communications...
>I like the Edit (Update, Cancel) functionality built into the gridview, but
>I'd like to control what happens when the Update is clicked. I would like
>to prompt the user with something like this "category has changed from
>'something' to 'something else', shall I process related records?
>(yes/no)". I would also like to confirm when a user clicks Delete.
>
> Here's how I currently have the gridview configured:
>
> <asp:GridView ID="gvMyGridView" runat="server" AllowSorting="True"
> AutoGenerateColumns="False" DataKeyNames="BigId" DataSourceID="sdsMonday">
> <Columns>
> <asp:BoundField DataField="Stage" HeaderText="Description"
> SortExpression="Stage" />
> <asp:CommandField ShowEditButton="True" />
> <asp:CommandField ShowDeleteButton="True" />
> </Columns>
> </asp:GridView>
>
> Thanks.
>
>
>