Hallo, thanks for your great product.
I'm having this problem:
I want to insert a value (long type) into a combo cell and I want it to show the text
I wrote a sub Combotipi that fills the combo with cod as value and the related text as text (Example: cod=1, text="car")
when I load the grid If I do it manually, selecting one item, it does correctly show the text (car) and has as value the value of the item (1) , but if I do with a sub (main) that insert a value retrieved from a DB query (long value=1) it shows it as text ("1") instead of showing the text related to the value ("car")
Sub Combotipi
.... reader with data from DB...
combo.Items.Clear()
While reader.Read()
cod = reader.GetValue(0)
combo.Items.Add(cod, reader.GetValue(1))
End While
End Sub
sub main
.Cells(column - 1, 1).DropDownControl = ComboTipi
.... reader2 with data from DB...
.Cells(column - 1, 1).Value = reader2.GetValue(column - 1)
...
I tried many variations (auxvalue, notext ecc) but none worked
thanks