General information
Category:
Forms & Form designer
>>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only