Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Yousfi Benameur
 To: surinder singh
  Where is surinder singh?
 surinder singh
Subject: RE: grids to display in text
Thread ID: 189128 Message ID: 189235 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Grids
Date: Thursday, August 14, 2008 2:26:58 AM         

> > 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

> -----------------------------------------------------------------------------------------------
> Regards
> 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.

Hi Surinder
I think that work if and only if you put the code in AfterRowColChange

the textbox is not autorefresh control.

Yousfi Benameur


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