Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# VB.NET
how can i delete records after check the checkbox from gridview?
Posted 15-Nov-11 2:59am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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

http://weblogs.asp.net/jgalloway/archive/2007/07/07/checkbox-grids-in-asp-net.aspx[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

How 'bout:
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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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
  Permalink  

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



Advertise | Privacy | Mobile
Web01 | 2.8.150326.1 | Last Updated 17 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100