Simple DataGridView problem driving me mad

Menthos

Well-known member
Joined
Jul 18, 2006
Messages
276
Programming Experience
10+
Hi.

Apologies for the daft question - I'm sure the answer is staring me in the face, but I've been banging my head on the desk all day trying to solve this...

I have a DataGridView object that I'm trying to populate with an arraylist that's created at runtime. I fill the list with 40 string values, bind it to the DataGridView as the datasource, but for some bizarre reason when run the grid shows the string lengths, rather than the actual strings!

I had thought that it was possibly not autogenerating the column type to textbox, however I forced that in the code, and still no joy.

Where am I going wrong - please save my sanity :)
 
Hi HULK,

Ok, I'm a bit confused with your suggestion - perhaps I didn't give enough info.

I did try sticking a listbox on the form and binding it to the same arraylist, and that displayed the strings correctly.
 
Back
Top