Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid View - DELETE CommandField
Message
General information
Forum:
ASP.NET
Category:
WebForms
Miscellaneous
Thread ID:
01335798
Message ID:
01335815
Views:
18
Thank you !!! That did it for me:
Protected Sub gvUsers_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gvUsers.RowDataBound
        If (e.Row.RowType = DataControlRowType.DataRow) Then
            Dim ib As ImageButton = DirectCast(e.Row.Cells(6).Controls(0), ImageButton)
            ib.Attributes.Add("onClick", "var ch=confirm('Do you want to delete');if(ch==false) return false;")
        End If
    End Sub
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform