Link to home
Start Free TrialLog in
Avatar of JMO9966
JMO9966

asked on

How to check value of Checkbox column property in DataGridView ?

Hi,
 
I have a DataGridView in my VB.Net 2005 project Form.  I do not set my DataSource for my DataGridView in Design mode but rather fill with a sql statement and set DataSource property in code.

What I did do in the Design View is to choose DataGridView Tasks and added a DataGridViewCheckBoxColumn.  This column appears in my DataGridView as the first column and I'm able to use the checkbox control but I can't figure out how to check this property for each row in my DataGridView ??

Thanks,
JMO9966
Avatar of JMO9966
JMO9966

ASKER

I'm having trouble access the DataGridView Row and column indexes to check for my checkbox being check or not.

Any thoughts would be appreciated.

Thanks,
JMO9966
Avatar of Howard Cantrell
I have a Listfview code that does checkboxes that might work better for your needs.
Avatar of JMO9966

ASKER

Thanks do you have a sample of the code?

JMO9966
ASKER CERTIFIED SOLUTION
Avatar of Howard Cantrell
Howard Cantrell
Flag of United States of America 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