Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement