Re: When creating multiple datagridview controls at runtime, how do you hide columns?
Originally Posted by dunfiddlin
No. There's a problem with you not adding columns to the DGV correctly (or at all?) At least that's what I'm assuming without the relevant code to check. Declare a New DataGridViewColumn (I think that's the right nomenclature, I'm flying blind at the moment. Assign values to it properties. Add it to the DGV. Then do the same all over again for each other column.
No. the OP has set the datasource for the dgv which creates the columns, but they aren't named as the OP is expecting...
Re: When creating multiple datagridview controls at runtime, how do you hide columns?
Originally Posted by .paul.
No. the OP has set the datasource for the dgv which creates the columns, but they aren't named as the OP is expecting...
Oh right. Missed that line. Should've gone to Specsavers!
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!