Question

Asked on 1999-08-05 at 04:37:13ID: 25036880

grids

by: andycrofts200

Rating6.0Good

I have a VFP5 application that is accessing data on an MS-SQL server database.
I have a form in which I have a grid. This grid is meant to display info from a number of records from a MSSQL table.
The grid has recordsourcetype = 1 and recordsource='details'.
Each time the account changes I execute a SQL "select account,f1,f2 from details where account = m_account".
Although each time I use 'details' as the cursor name and the recordsource=details the columncount gets set to 0. Presumably because it is a diferrent physical table/cursor.
I got round this by resetting columncount,the headings and widths of each column and the datasource of each column.
This worked so far.
Now I come to my problem. The functionality required is such that the user can double click on a record in the grid and a certain piece of code is executed. This was included in the text1.dblclick for each column in the grid and is lost when a new set of records is retrieved from MSSQL. I don't see how I can recreate these methods as I have with the properties of the grid.columns.

So what I want is a grid populated from a changeable selection of records from an MSSQL table, which when the users double clicks a record a certain piece of code is executed. Any ideas on how to get what I've done so far to work or how to approach it differently from scratch?

TIA

Related Solutions

Solution

Access this solution immediately by signing up as a member of FoxproAnswers.com--it’s quick, easy, and secure. We will return you to this solution, unlocked, when you’re done.

About this Solution
Sign up Now to View This Solution
Zone
general
Tags
Participating Experts
3
Solution Grade
B

Replies

 by: Goshagosha

Posted on 1999-08-05 at 06:38:30ID: 26247802

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: andycrofts

Posted on 1999-08-05 at 08:11:36ID: 26247803

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: mrorph

Posted on 1999-08-05 at 17:31:36ID: 26247804

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: andycrofts

Posted on 1999-08-06 at 01:35:15ID: 26247805

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: Goshagosha

Posted on 1999-08-06 at 02:40:13ID: 26247806

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: andycrofts

Posted on 1999-08-06 at 03:29:02ID: 26247807

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: Goshagosha

Posted on 1999-08-06 at 07:15:13ID: 26247808

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: CajunJoe

Posted on 1999-08-06 at 09:39:06ID: 26247809

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: mrorph

Posted on 1999-08-06 at 10:03:00ID: 26247810

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: CajunJoe

Posted on 1999-08-06 at 10:17:57ID: 26247811

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: mrorph

Posted on 1999-08-06 at 10:37:27ID: 26247812

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: CajunJoe

Posted on 1999-08-06 at 10:42:56ID: 26247813

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: andycrofts

Posted on 1999-08-09 at 01:45:42ID: 26247814

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: Goshagosha

Posted on 1999-08-09 at 09:59:50ID: 26247815

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Log In

Forgot your password?Sign up

Top Experts

  1. pcelba

    4,240

    0 points yesterday

    Profile
  2. mozner

    2,000

    0 points yesterday

    Profile
  3. mbarbir

    1,912

    0 points yesterday

    Profile
  4. jrbbldr

    1,500

    0 points yesterday

    Profile

BrowseAre you an Expert?