Author Topic: Datagridview checkbox  (Read 1175 times)

0 Members and 1 Guest are viewing this topic.

poncelet

  • Guest
Datagridview checkbox
« on: December 31, 2011, 11:10:32 AM »
Hello all,
Happy new year! Happy programing!
Ok here's the problem:
I got a datatable with 6 columns.

The last column is a checkbox:
Code: [Select]
ds.Tables("Main").Columns.Add("Selected", GetType(Boolean))
I bind the datatable to the datagridview

Everything is ok

I try to track when the user clicks the checkbox with CellContentClick event:
Code: [Select]
Private Sub DataGridView1_CellContentClick
But it isn't working. The event doesn't trigger. Any ideas? Thanks.

poncelet

  • Guest
Re: Datagridview checkbox
« Reply #1 on: December 31, 2011, 11:36:24 AM »
i entered some dummy code (msgbox) in the event and in run mode seems to work fine  :?

fixo

  • Guest
Re: Datagridview checkbox
« Reply #2 on: January 01, 2012, 04:43:56 AM »
Happy New Year you too!

Keep coding!

Cheers :)