Click to See Complete Forum and Search --> : Set DataCombo Current Selection


beatrice
August 18th, 2003, 05:11 AM
Hi,
Does anyone know how to set the current selection in the DataCombo control?
In the Combobox I think there's a SetCurSel method, but this method is not available for the DataCombo control.
Please help, I've been trying to figure it out the hole day.
I'm using ADO and the binding code is below.


_RecordsetPtr rs; //recordset object


//opens recordset...

......

//sets dataCombo
m_AnsTyp.putref_RowSource((LPUNKNOWN) rs);
m_AnsTyp.put_ListField("AnsTypDes");
m_AnsTyp.put_BoundColumn("AnsTyp");
m_AnsTyp.put_BoundText("AnsTypDes");

Thks a lot
Beatrice

beatrice
September 1st, 2003, 03:40 AM
It's answered at:

http://www.codeguru.com/forum/showthread.php?s=&threadid=259909&highlight=beatrice