Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Problem
Message
De
24/07/2000 16:46:47
Jimmy Ditta
Twin City Electronics
Monroe, Louisiane, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Grid Problem
Divers
Thread ID:
00396327
Message ID:
00396327
Vues:
31
I have a dropdown with a method called transactn_search in the Interactivechange. Here's the code for transactn_search:

SELECT trancustin &&view in the DE
SEEK Thisform.Combo1.value &&Rowsource is a field in transcustin

IF FOUND()
Thisform.Combo1.value = trans_id_a
Thisform.Text1.VALUE = track_num
Thisform.Text2.VALUE = company
Thisform.Text3.VALUE = amt_total
Thisform.Text4.VALUE = amt_initial_owed
Thisform.Text5.VALUE = amt_initial_pd
Thisform.Text6.VALUE = amt_pending
ELSE
= messagebox('The record you searched for is invalid and should be deleted')
ENDIF

THISFORM.cursor_trans_items() &&Gets data for grid
THISFORM.grid_controls() &&Modifies grid properties

The code for grid controls:

THISFORM.Grid1.RecordSource = 'trans_items'
ThisFORM.Grid1.Column1.ControlSource = 'trans_items.item_status'
ThisFORM.Grid1.Column2.ControlSource = 'trans_items.stocknum'
ThisFORM.Grid1.Column3.ControlSource = 'trans_items.p_descript'
ThisFORM.Grid1.Column4.ControlSource = 'trans_items.total_chg'

Transactn_search() is also in the init of the form.

THE PROBLEM: I set the columncount at 4, the width of each column, and each header caption. When the form opens and transactn_search() runs in the init, everything looks and works beautifully, but when I click on the combobox and make another selection (triggering transactn_search() in the interactivechange), my columns disappear and the cursor itself shows up in the grid. Why?

Thanks
JD
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform