[dba-VB] Define Number of Columns in DBGrid Control

Jim DeMarco Jdemarco at hudsonhealthplan.org
Tue May 24 08:36:32 CDT 2005


Something like this::

    DBGrid1.Columns.Add 2
    DBGrid1.Columns(2).Visible = True

See Help for info on Add method.

HTH,

Jim DeMarco

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Randall R
Anthony
Sent: Tuesday, May 24, 2005 8:58 AM
To: dba-vb at databaseadvisors.com
Subject: [dba-VB] Define Number of Columns in DBGrid Control


Hello listers,
I'm trying to use a DBGrid control to display 4 columns of data. 
However I can't get it to work.  My first two columns (the default, I
guess) work, but when I try a third .gridform.columns(2) = whatever, I
get a type mismatch or an exceeds array error.  What am I doing wrong? 
Thanks!
_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com



***********************************************************************************
"This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited.  If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message.  Thank You".
***********************************************************************************




More information about the dba-VB mailing list