Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

DataGridView check box column event to see when clicked

Hi

In VB.net 2010 I need to run code when a check box column is checked.
How do I achieve this?
Avatar of jppinto
jppinto
Flag of Portugal image

Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
       
Dim s As DataGridViewCell = DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex)
       'your code here
End Sub
ASKER CERTIFIED SOLUTION
Avatar of nepaluz
nepaluz
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Thanks very much. Things finally worked with your code.