Solved

how do i refernce the row on a click event in a grid

Posted on 2011-03-02
3
570 Views
Last Modified: 2012-05-11
I have a grid on a from which has a column with showing filepaths
I want to bring up the file() routine to edit these paths
I created a Click event on the field but when I enter the routine the thisform.grid.ActiveRow always show 0 whatever row i click on

How can I create this cell editor ?
0
Comment
Question by:MikeHillsi2g
3 Comments
 
LVL 1

Accepted Solution

by:
hiraben earned 250 total points
ID: 35020772
Would selecting the table and using recno() work for you?
0
 
LVL 42

Assisted Solution

by:pcelba
pcelba earned 250 total points
ID: 35020928
If you are clicking in a cell containing the path then you don't need to look for some row because you already are on the row.

And the value is in  thisform.grid.ColumnName.Text1.Value.  Better option is to access the value directly in the data table or cursor displayed in the grid. Simply use the table column name as the reference.
0
 

Author Closing Comment

by:MikeHillsi2g
ID: 35021212
thanks guys
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
While it may be true that the internet is a place of possibilities, it is also a hostile environment lurking with many dangers. By clicking on the wrong link, trusting the wrong person or using a weak password, you are virtually inviting hackers to …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question