Select data from a cell grid  
Author Message
cwhetsel





PostPosted: Visual FoxPro General, Select data from a cell grid Top

I am building a grid and I need to select a record from the grid from the same column everytime but it needs to differ depending on which row the user has selected. What is the best way to aproach this Activerow.something

Visual FoxPro2  
 
 
cwhetsel





PostPosted: Visual FoxPro General, Select data from a cell grid Top

ok I have sorta got it figured out....

this.parent.label.caption = this.Parent.grdProvIDs.column1.text1.value

HOWEVER! The column I need to gather the data from is column9 and it is not visible, I need to be able to select its data by only clicking on its row.

PS The code I have above only lists what I need when column1 is selected


 
 
Tamar E. Granor





PostPosted: Visual FoxPro General, Select data from a cell grid Top

When you're in a grid, the record pointer for the underlying table is pointing to the record that has focus, so you can just read the data from the table.

Tamar

 
 
Markish





PostPosted: Visual FoxPro General, Select data from a cell grid Top

Hi,

You can just use

this.parent.label.caption = mycursor.fldname

Regards,

Markish