Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids and Sparse
Message
De
27/02/2008 13:49:03
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01296975
Message ID:
01297015
Vues:
28
>>I have two grids. They are based on the same custom grid class.
>>
>>Both grids have the Sparse setting as FALSE for column1. The setting is TRUE for all other columns.
>>
>>In one grid I see all the data "properly" in that each record's data is displayed in each field.
>>
>>In another grid I see the same data for each row in each column (except the first). When I click in the cell I see the correct data.
>>
>>Is there some other property which controls this behavior (enabled/readonly/etc.) at the grid, column or control level?
>>
>>Thanks to all..........Rich
>
>Are you using default texbox for other columns or some extra control?
>
>Though it should not matter, something else is wrong.
>
>What is RecordSource, ControlSource for the grid's columns? Did you specify controlsources with the Table name included?

Column1 of the first grid has two controls. A text box and a check box. The CurrentControl is the checkbox. The second grid does not have the checkbox in Column 1.
Thisform.grdNotAdded.ColumnCount=2   && This one works
thisform.grdNotAdded.RecordSource = thisform.oDataCursors.Eco_Impact_notAdded
thisform.grdNotAdded.column1.header1.Caption = ""
Thisform.grdNotAdded.column1.ControlSource="partselect"
thisform.grdNotAdded.column2.header1.Caption = "Part No"
Thisform.grdNotAdded.column2.ControlSource="part_no"

Thisform.grdImpact.ColumnCount = 9  && This one doesn't
Thisform.grdImpact.RecordSource =  thisform.oDataCursors.Eco_Impact
thisform.grdImpact.column1.header1.Caption = "Type"
Thisform.grdImpact.column1.ControlSource="chng_type"
thisform.grdImpact.column2.header1.Caption = "Item #"
Thisform.grdImpact.column2.ControlSource="item_no"
thisform.grdImpact.column3.header1.Caption = "Part No"
Thisform.grdImpact.column3.ControlSource="part_no"
thisform.grdImpact.column4.header1.Caption = "Rev"
etc
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform