Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

newbie - how to resize column MSFlexGrid

 
   Database Help (Home) -> Visual Basic -> ADO RSS
Next:  Viewing images  
Author Message
Newbee Adam

External


Since: Feb 14, 2005
Posts: 3



(Msg. 1) Posted: Tue Feb 15, 2005 9:43 am
Post subject: newbie - how to resize column MSFlexGrid
Archived from groups: microsoft>public>vb>database>ado (more info?)

newbie - how to resize column MSFlexGrid


I do not see in properties, maybe I am blind, how to change column width. I
would like to set it to just resize automatically to widest field of the
column, of corse.
can I, may I!!!???

thanks
--
Adam S

 >> Stay informed about: newbie - how to resize column MSFlexGrid 
Back to top
Login to vote
user1891

External


Since: Dec 09, 2004
Posts: 8



(Msg. 2) Posted: Tue Feb 15, 2005 1:40 pm
Post subject: Re: newbie - how to resize column MSFlexGrid [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Plan2.G is the Grid

Plan2.G.FixedCols = 1
Plan2.G.Rows = 3
Plan2.G.FixedRows = 2

Plan2.G.ColWidth(0) = 1000

Plan2.G.RowHeight(0) = 420
Plan2.G.MergeRow(0) = True
Plan2.G.RowHeight(1) = 500
Plan2.G.MergeRow(1) = True



"Newbee Adam" schreef in bericht

 > newbie - how to resize column MSFlexGrid
 >
 >
 > I do not see in properties, maybe I am blind, how to change column width.
 > I
 > would like to set it to just resize automatically to widest field of the
 > column, of corse.
 > can I, may I!!!???
 >
 > thanks
 > --
 > Adam S

 >> Stay informed about: newbie - how to resize column MSFlexGrid 
Back to top
Login to vote
Master Dev

External


Since: Feb 16, 2005
Posts: 2



(Msg. 3) Posted: Wed Feb 16, 2005 1:15 am
Post subject: Re: newbie - how to resize column MSFlexGrid [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

Perhaps some extra info about the (correct) code below.
If you have 3 cols then the first one has zero as number. So if you want to
resize all the cols to the same size:

with grdGrid1
for t=0 to .cols ' .cols is the actual number of cols in the grid
.colwidth(t)=450 ' or .colwidth(t) = arrWidth(t) if you have widths
in an aray
next t
end with

Master Dev

"Gérard Leclercq" wrote:

 > Plan2.G is the Grid
 >
 > Plan2.G.FixedCols = 1
 > Plan2.G.Rows = 3
 > Plan2.G.FixedRows = 2
 >
 > Plan2.G.ColWidth(0) = 1000
 >
 > Plan2.G.RowHeight(0) = 420
 > Plan2.G.MergeRow(0) = True
 > Plan2.G.RowHeight(1) = 500
 > Plan2.G.MergeRow(1) = True
 >
 >
 >


  > > newbie - how to resize column MSFlexGrid
  > >
  > >
  > > I do not see in properties, maybe I am blind, how to change column width.
  > > I
  > > would like to set it to just resize automatically to widest field of the
  > > column, of corse.
  > > can I, may I!!!???
  > >
  > > thanks
  > > --
  > > Adam S
 >
 >
 >
 >> Stay informed about: newbie - how to resize column MSFlexGrid 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Sever-side cursor return NOTHING??(newbie) - Hi, I try to use dataenv object. I add new connection (jet 3.51 provider with Biblio example) and then add command (all use server side cursor) and then drag command in to Form . However, when I run the project (vb6 sp5 WinXP sp1), I got nothing in the..

newbie - late bind datalist doesn't populate - Private Sub cmdLookUpGroupInfo_Click() In the code below, I succesfully was able to bind and polpulate a text box with my select statement. But I need multiple table rows to be populated so I cannot use the text box. So I am trying to use the..

error converting the varchar value 'True' to a column of d.. - In a vb6 app using ado connecting to a sql server 2000 stored procedure, am seeing this error: "Syntax error converting the varchar value 'True' to a column of data smallint" The error only seems to happen when updating one record. Other reco...

Adding a column to an existing ADOX Catalog's table's key - Does anyone know how (or whether it is possible) to add a column to an existing key for a column using ADOX? pseudo code: Dim cn as ADODB.Connection Dim lCat as new ADOX.Catalog Dim ltbl as new ADOX.Table Dim lKey as New ADOX.Key 'open the cn Set..

runtime error 3021 and user permissions - I have a VB6 application that uses ADO 2.7 to access an Access2000 database. I have found on Windows XP and 2000, that if the user is not part of the administrators group, they receive: "runtime error 3021. Either BOF or EOF is true, or the current ...
   Database Help (Home) -> Visual Basic -> ADO All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]