Click here to Skip to main content
15,881,638 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can i delete records after check the checkbox from gridview?
Posted

add a event handler.. to checkbox.. follow the article..


http://weblogs.asp.net/jgalloway/archive/2007/07/07/checkbox-grids-in-asp-net.aspx[^]
 
Share this answer
 
How 'bout:
VB
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
For Each row As DataGridViewRow In DataGridView1.Rows
            If row.Cells(0).Value = True Then
                DataGridView1.Rows.Remove(row)
            End If
        Next
End Sub
 
Share this answer
 
not workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot workingnot working
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900