Advertisement

05.20.2008 at 04:48PM PDT, ID: 23419242
[x]
Attachment Details

VB.Net 2005 Dynamic DataGridView How To's?

Asked by dsmrtn in Visual Studio .NET 2005, Microsoft Visual Basic.Net, Microsoft Visual C#.Net

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
[+][-]05.21.2008 at 06:52AM PDT, ID: 21615034

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio .NET 2005, Microsoft Visual Basic.Net, Microsoft Visual C#.Net
Sign Up Now!
Solution Provided By: dweppenaar
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628