Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to display array in grid.
Message
 
 
À
14/04/1999 02:37:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00208077
Message ID:
00209083
Vues:
25
>>>Hi all experts, I have a grid for inputting data, there is a combo box in the first column.
>>>
>>>grid.column.combo.RowSourceType = 5-array
>>>grid.column.combo.RowSource = gaTemp
>>>
>>>The array gaTemp is a 2-dimensional array. I wanna know how to display gaTemp(selected by combo,2) in the 2nd column of the grid? I've tried to change the column.ControlSource, but I'm fail to display anything. :-(
>>>
>>>Thanks in advance!!
>>>
>>>Rosanna
>>Rosanna,
>>You could use array that way but it would still assign a controlsource. If it's after the last column in grid it would do a ring and use field(1) as controlsource.
>>If your problem is not controlsource then check that if column.currentcontrol is set to combo and play with sparse setting to see the difference.
>>Cetin
>
>Cetin,
>
>Thanks, but my problem is still here.
>
>Let me explain my problem clearly. The gaTemp(5,2) contains:
>
>gaTemp(1,1) 'Code1'
>gaTemp(1,2) 'Code1 description'
>gaTemp(2,1) 'Code2'
>gaTemp(2,2) 'Code2 description'
>..... etc
>
>What the problem is, when I select 'Code2' in the comboBox, it is okay to display 'Code2' in 1st column, but I wanna display 'Code2 description' in 2nd column. Is it possible to do that?
>
>Rosanna

Set the columncount of the combobox to 2.
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform