I just tried this code after dropping a combobox in one of the grid columns. I do not get the C5. Can you provide the code that you have in the combo methods so we can try to replicate this error?
>I tried, but this produces also C5 error.
>
>I found that C5 error occurs only if grid contains combobox. If grid contains only textboxes, C5 error does not occur.
>
>>More complete code:
>>LOCAL lnCount, lnI
>>lnCount = ThisForm.Grid1.ColumnCount
>>FOR lnI = lnCount TO 1 STEP -1
>> ThisForm.Grid1.RemoveObject(ThisForm.Grid1.Columns(lnI).Name)
>>ENDFOR
Mark McCasland
Midlothian, TX USA