Solved

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

Posted on 2011-03-02
3
568 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 41

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Activating an OLE Program 10 21
error when passing a variable from a form 6 172
Toolbar in a formset deletion 1 298
Fox pro using the copy command 5 29
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…
When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now