Dmitri,
Close, but not quite.
Now the only problem is that the nonselected elements of the column show the number instead of the name.
Suggestions?
TIA
Rex
>>Your Combo.ControlSource should be moved to the Column1 object. When this happens, I have to select the table that is the ControlSource for the grid, and even then, I can't get to the first record, every time I click it, control goes to the last record.
>>
>>What is going wrong?
>>
>
>I'm catch one error 5 minutes ago...
>
>Look the code snippet below
>-----
>clear all
>close tables
>
>PUBLIC oform1
>
>set classlib to combolib
>use invm in 0
>use itty in 0
>
>oform1=NEWOBJECT("combo_in_grid")
>oform1.Show
>RETURN
>-----
>
>In my class Combo_In_Grid I don't set the Grid.RowSource.
>If I don't forgot you too.
>
>Well, code above works fine. But if I rearrange lines to:
>use itty in 0
>use invm in 0
>I have a problem: when I set focus to Grid record pointer going to last record!
>I think that in first case Grid without RowSource setting get it from first work area and code work as need.
>
>May be this idea?
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