I would like to display data records in a grid vertically instead of horizontally. This way I can see all the fields for each record on the screen at the same time. Is this possible in VFP6?
What you see is a grid with one column. Iso of the standard textbox control in the column, I made a container class and replaced the text box control with my container. The result is what you see in the picture.
This will enable you to see all data fields vertically iso the standard horizontal representation.
You can also download the application in which I programmed it from my site, so you can see clearly what I mean.
I built a grid with 1 column. I created a container with my fields in it. I tried to enter my container's name into the current control property of the column and get illegal value error.
Well, they will also show data in your container (which shows your data vertically) but actually it is still a horizontal presentation. (Just as in the image I refereed to in my previous post in this thread see:
BTW here is the code I used to make the grid look like the image I referred to:
This is the init() event of the grid.
PROCEDURE INIT
*-------------------------------------
*- SE: Wietze Veld
*- DateTime: 11/01/00 03:32:47 PM
*-------------------------------------
LOCAL llRetVal
llRetVal = DODEFAULT()
IF llRetVal
WITH THIS
.COLUMNCOUNT = 1
WITH .Column1
.ADDOBJECT('cnt_crndata', 'cnt_crndata')
.REMOVEOBJECT('Text1')
.REMOVEOBJECT('Header1')
.cnt_crndata.VISIBLE = .T.
.WIDTH = .cnt_crndata.WIDTH
THIS.ROWHEIGHT = .cnt_crndata.HEIGHT
.CURRENTCONTROL = "cnt_crndata"
.SPARSE = .F.
ENDWITH
ENDWITH
ENDIF
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.