I have a gridview which will display data from sql database. I need to use a custom delete button that when a checkbox is checked it will delete the row from the database

its like the gmail functionality.

Add a Delete Command button (set CommandName & CommandArgument) and a CheckBox in TemplateField. To write record delete code, handle the RowDeleting event of GridView.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.