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

Multiple Lines in DBGrid Records

 
   Database Help (Home) -> Visual Basic -> DAO RSS
Next:  how to programmatically export an access table t..  
Author Message
Richard Shaw

External


Since: Nov 16, 2003
Posts: 3



(Msg. 1) Posted: Sat Oct 25, 2003 9:09 pm
Post subject: Multiple Lines in DBGrid Records
Archived from groups: microsoft>public>vb>database>dao (more info?)

Is there a way to have the text in DBGrid records (rows)
allow mutiple lines so that long text will not require
columns to be too wide to show all of the text? The rows
in my Access file can be broadened vertcally so that
multiple lines can be used, but that doesn't translate to
the same situation when I link them to my VB Grid.

I am running Millennium, and Visual Basic 6.0.

 >> Stay informed about: Multiple Lines in DBGrid Records 
Back to top
Login to vote
BT31

External


Since: Sep 05, 2003
Posts: 1



(Msg. 2) Posted: Sun Oct 26, 2003 12:27 am
Post subject: Re: Multiple Lines in DBGrid Records [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

dbgrid.rowheight = ??

BT3

"Richard Shaw" <anonymous.TakeThisOut@discussions.microsoft.com> wrote in message
news:07a801c39b5d$bdfc2cb0$a001280a@phx.gbl...
 > Is there a way to have the text in DBGrid records (rows)
 > allow mutiple lines so that long text will not require
 > columns to be too wide to show all of the text? The rows
 > in my Access file can be broadened vertcally so that
 > multiple lines can be used, but that doesn't translate to
 > the same situation when I link them to my VB Grid.
 >
 > I am running Millennium, and Visual Basic 6.0.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Multiple Lines in DBGrid Records 
Back to top
Login to vote
Glenn Tarpley

External


Since: Nov 12, 2003
Posts: 5



(Msg. 3) Posted: Sun Oct 26, 2003 11:05 pm
Post subject: Re: Multiple Lines in DBGrid Records [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

See the WrapText property of the grid's Column Object in VB's onlne help.

DataGrid1.Columns(1).WrapText = True

If needed, use the WrapText property in conjunction with the RowHeight
property to produce multi-line displays.

DataGrid1.RowHeight(DataGrid1.Row) = 500

or let users resize row height at runtime.

DataGrid1.AllowRowSizing = True

Glenn


"Richard Shaw" <anonymous RemoveThis @discussions.microsoft.com> wrote in message
news:07a801c39b5d$bdfc2cb0$a001280a@phx.gbl...
Is there a way to have the text in DBGrid records (rows)
allow mutiple lines so that long text will not require
columns to be too wide to show all of the text? The rows
in my Access file can be broadened vertcally so that
multiple lines can be used, but that doesn't translate to
the same situation when I link them to my VB Grid.

I am running Millennium, and Visual Basic 6.0.
 >> Stay informed about: Multiple Lines in DBGrid Records 
Back to top
Login to vote
Richard Shaw

External


Since: Nov 16, 2003
Posts: 3



(Msg. 4) Posted: Mon Oct 27, 2003 10:02 am
Post subject: Re: Multiple Lines in DBGrid Records [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you very much for your help. Your instructions
worked perfectly. However, I have searched to the best of
my ability, and can not find the reference you
mentioned "See the WrapText property of the grid's Column
Object in VB's onlne help.". Can you give directions?
 >-----Original Message-----
 >
 >See the WrapText property of the grid's Column Object in
VB's onlne help.
 >
 >DataGrid1.Columns(1).WrapText = True
 >
 >If needed, use the WrapText property in conjunction with
the RowHeight
 >property to produce multi-line displays.
 >
 >DataGrid1.RowHeight(DataGrid1.Row) = 500
 >
 >or let users resize row height at runtime.
 >
 >DataGrid1.AllowRowSizing = True
 >
 >Glenn
 >
 >
 >"Richard Shaw" <anonymous DeleteThis @discussions.microsoft.com>
wrote in message
 >news:07a801c39b5d$bdfc2cb0$a001280a@phx.gbl...
 >Is there a way to have the text in DBGrid records (rows)
 >allow mutiple lines so that long text will not require
 >columns to be too wide to show all of the text? The rows
 >in my Access file can be broadened vertcally so that
 >multiple lines can be used, but that doesn't translate to
 >the same situation when I link them to my VB Grid.
 >
 >I am running Millennium, and Visual Basic 6.0.
 >
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Multiple Lines in DBGrid Records 
Back to top
Login to vote
Glenn Tarpley

External


Since: Nov 12, 2003
Posts: 5



(Msg. 5) Posted: Mon Oct 27, 2003 6:18 pm
Post subject: Re: Multiple Lines in DBGrid Records [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Open MSDN, or click help from vb6, and from the search tab, enter wraptext.
It's the only topic returned in the search if visual basic documentation is
the active subset.

From the WrapText Property help page, you can navigate to other gird topics
from the See Also list and you can select the gird's main help page by
selecting it from the Applies To list.

Glenn

"Richard Shaw" <anonymous DeleteThis @discussions.microsoft.com> wrote in message
news:0a4e01c39c9b$4a979d60$a301280a@phx.gbl...
Thank you very much for your help. Your instructions
worked perfectly. However, I have searched to the best of
my ability, and can not find the reference you
mentioned "See the WrapText property of the grid's Column
Object in VB's onlne help.". Can you give directions?
 >-----Original Message-----
 >
 >See the WrapText property of the grid's Column Object in
VB's onlne help.
 >
 >DataGrid1.Columns(1).WrapText = True
 >
 >If needed, use the WrapText property in conjunction with
the RowHeight
 >property to produce multi-line displays.
 >
 >DataGrid1.RowHeight(DataGrid1.Row) = 500
 >
 >or let users resize row height at runtime.
 >
 >DataGrid1.AllowRowSizing = True
 >
 >Glenn
 >
 >
 >"Richard Shaw" <anonymous DeleteThis @discussions.microsoft.com>
wrote in message
 >news:07a801c39b5d$bdfc2cb0$a001280a@phx.gbl...
 >Is there a way to have the text in DBGrid records (rows)
 >allow mutiple lines so that long text will not require
 >columns to be too wide to show all of the text? The rows
 >in my Access file can be broadened vertcally so that
 >multiple lines can be used, but that doesn't translate to
 >the same situation when I link them to my VB Grid.
 >
 >I am running Millennium, and Visual Basic 6.0.
 >
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Multiple Lines in DBGrid Records 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
DAO 3.6 record locking - Hi, Is it possible to programmatically lock a single record in a VB application using DAO 3.6? I would like to lock users' records when they log on to the app. Later I can check if a user's record is locked to see if they are logged in or not. (I....

Fixes for VB4 or DAO 3.0 - I've got VB4 (32-bit) and it seems to use DAO 3.0. Is there a service pack for either of these that I can use? I'm having issues with DAO and > 2GB of RAM on the machine, and don't want to have to move to a newer version of VB if I can help it, just t...

Jet error - I've just started getting this error message on a seemingly random basis. 'The Microsoft Jet database engine does not recognize 'CID' as a valid field name or expression.' CID is a text field, and it is a valid column name. The line of code that..

DAO reference / Access 2007 - while using an Access 2007 .accdb file I can access the dao. object very easily. the following code in VBA works well : Function getrecordcount(strTableName As String) As Long Dim dbCurrent As DAO.Database Set db = CurrentDb Dim rstRecords A...

Data Source - Data Report Designer - Is there a way to change the Database Source at run time in the Microsoft Data Report Designer? If so. How?
   Database Help (Home) -> Visual Basic -> DAO All times are: Pacific Time (US & Canada) (change)
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 ]