I have text based configuration files I have been loading into a DataTable which I have then loaded into a dynamically built DataGridView. The column types I need are 'string/textbox', boolean/checkbox, 'whatever' to display bmp (image changes during runtime, I've tried DataGridViewImageColumn").
If I use String, Boolean, nothing, It shows my strings and it shows checkbox checked or unchecked appropriately. What I hadn't gotten working is the images (set up as resource BMPs). I'm getting better results dumping the DataTable and building the DGV dynamically. Got all the column types working. But the cells don't support the Name property the way I set them up.
What I need is the ability to create DGV, add a text column, and 1 to 6 pairs of checkbox & image columns.
I need to be able to add events to checkbox columns.
I need to be able to Name cells, so each column is chkAAA1...chkAAA20 then chkBBB1...chkBBB20.
If it is important, because I read where others had issues, I have a TabControl on Form, that has Panel dynamically added with some controls, and then I add a DataGridView. Each tab has Panel, controls, DGV on it.
Any help much appreciated.
Start Free Trial