>Hi Christian.
>
>
I'm using a grid with comboboxes, and what happens is, that the value will be the recordnumber instead of the value form the key field.>
>Are you saying that you don't want the value to be the record number? If this is the case, you need to set teh BoundTo property of the combo box to .T.
Thanks, the BoundTo property does work, but there are new problems coming up. The DisplayValue of the combobox gets empty when the control gets the focus, and the lengh of the display value is limited to the lengh of the bound field.
I solve this the following way: I increase the bound field from N(10) to N(20), so the combobox can display 20 characters (which is luckily enough) and I populate the combobox with AddListItem(), so it does not get empty upon GotFocus (strange behavior).
Christian Isberner
Software Consultant