DataGridView Checkbox column hell

DataGridView Checkbox column hell

Old forum URL: forums.lhotka.net/forums/t/785.aspx


JonM posted on Tuesday, August 01, 2006

Hey,

Has anyone figured out how to get a checkbox column to databind correctly?  I can get my boolean properties to bind to it, but they do not get written back to the object until I move off of the column.  Does anyone have a way around this?  I've been banging my head against the wall on this one.  I want the value updated everytime the check is changed.

BDuncs replied on Wednesday, August 09, 2006

If you want the any value to commit without having to move off of the row first then just call the DataGridView.EndEdit() Method

Copyright (c) Marimer LLC