Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: surinder singh
  Where is surinder singh?
 surinder singh
 To: Jake Pomperada
  Where is Jake Pomperada?
 Bacolod City, Negros Occidental
 Jake Pomperada
Subject: RE: grids to display in text
Thread ID: 189128 Message ID: 189130 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Grids
Date: Wednesday, August 13, 2008 1:47:38 PM         

> Hi Guys,
> I have a problem regarding a grid that has a series of records on it. It is possible when I mark a particular record in the gird then I click the display button all the information in that particular record in the grid will be display on my textbox for display? Any code will help? Thanks and God Bless.
> Regards,
> Jake :-D

you can set controlSource property of your textboxes on your form

e.g. RecordSource of your grid is "grdCursor"
then set textbox control source to that cursor
thisform.text1.controlSource = grdCursor.fieldName

by doing this when user will navigate in grid your text box will contain the data
corresponding to the row selected in the grid and you don't need to use button to display

but if you want to display only when user hits the button then
 thisform.text1.value = grdCursor.fieldName
* or
 thisform.text1.value = thisform.grid1.column1.text1.value
* and so on

Surinder Singh
Email: sur200@indiatimes.com
Check my blog for details: http://weblogs.foxite.com/sur200
*If you understand what you're doing, then you're not learning anything.


grids to display in text Posted by Jake Pomperada @ 8/13/2008 1:29:07 PM
RE: grids to display in text Posted by surinder singh @ 8/13/2008 1:47:38 PM
RE: grids to display in text Posted by Yousfi Benameur @ 8/14/2008 2:26:58 AM
RE: grids to display in text Posted by surinder singh @ 8/14/2008 7:29:28 AM