Home All Groups Group Topic Archive Search About

DataGridView visible columns

Author
10 Dec 2006 9:42 PM
rmgalante
I've had troubles with my DataGridView objects in that it is often
difficult
to make columns such as key columns invisible.  These DataGridViews use
a BindingList as a datasource, which is loaded from an external SQL
database.  Setting the columns Visible property to False does not
always work.  After fiddling around with it for hours I've gotten
others to work but still haven't figured out the source of the problem.
Anyone else had problems with this and any known workarounds?

Thanks,

Rob

Author
11 Dec 2006 5:56 AM
Cor Ligthert [MVP]
Rob,

Have a look at our website, especially Ken has created a lot of samples
around the datagridview.

http://www.vb-tips.com/default.aspx

Cor

<rmgala***@galaware.com> schreef in bericht
Show quoteHide quote
news:1165786970.606178.48800@f1g2000cwa.googlegroups.com...
> I've had troubles with my DataGridView objects in that it is often
> difficult
> to make columns such as key columns invisible.  These DataGridViews use
> a BindingList as a datasource, which is loaded from an external SQL
> database.  Setting the columns Visible property to False does not
> always work.  After fiddling around with it for hours I've gotten
> others to work but still haven't figured out the source of the problem.
> Anyone else had problems with this and any known workarounds?
>
> Thanks,
>
> Rob
>
Author
11 Dec 2006 12:24 PM
rmgalante
rmgala***@galaware.com wrote:
> I've had troubles with my DataGridView objects in that it is often
> difficult
> to make columns such as key columns invisible.  These DataGridViews use
> a BindingList as a datasource, which is loaded from an external SQL
> database.  Setting the columns Visible property to False does not
> always work.  After fiddling around with it for hours I've gotten
> others to work but still haven't figured out the source of the problem.
>  Anyone else had problems with this and any known workarounds?
>
> Thanks,
>
> Rob

Here is what I did to solve this problem. I moved all the columns that
are supposed to be invisible to the end of the row. That seems to have
worked, but I have no idea why.