Selecting a Combo Box within X ValueMember

Mikecrosoft
01-21-2004, 08:03 AM
Hi


I found finally how to fill a combobox with hidden data from a DataTable information:


CboTest.DisplayMember = FieldTextName
CboTest.ValueMember = FieldIDName
CboTest.DataSource = MyDataTable


Ok, this works great, but my next problem is, how I can select the item with the specified ValueMember ????

Thanks

Mike

Mikecrosoft
01-21-2004, 08:10 AM
Solved by good friend:


cboTest.SelectedValue = MyValue


Thanks Jimmy.NET

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum