Thanks for the quick respond!
Your code works fine.
I Found out that the problem appears when the grid is bound to a dataset and the combobox is set on an empty shell.
Create table "Table1" with any three columns (eg id-Autonumber,fname-Text,sname-Text)
Put data in two records of fname field but leave sname empty.
In your form put the following code :
Private Sub Form_Load()
Dim rs As ADODB.Recordset
Dim grd As iGrid
Set grd = iGrid0.Object
Set rs = CurrentProject.Connection.Execute("SELECT * from table1")
grd.FillFromRS rs
grd.Combos.Clear
With grd
With .Combos.Add("cbo")
.AddItem "aaa"
.AddItem "bbb"
.AddItem "ccc"
End With
.CellType(1, 3) = igCellTextCombo
.CellCtrlKey(1, 3) = "cbo"
End With
iGrid0.ShowControlsInAllCells = True
End Sub
Now if you click the arrow of the combo box, Access crashes.
The ShowControlsInAllCells flag is irrelevant.
If you put the combobox in the second column that is filled, no crash occures.
If you put a letter into a combo box and then click the arrow, no crash occures.
Something to do with null value handling I suppose...