On Thu, Dec 23, 2010 at 4:41 AM, Musthaan <[email protected]> wrote:
> in vb6 they use the property of combobox.List property and set the
> text to it. similarly wat is the property in vb.net
--------------
cmbModels.Items.Clear();
cmbModels.Items.Add("Show All");
cmbModels.Items.Add("Not Model Specific");
cmbModels.DisplayMember = "description";
cmbModels.ValueMember = "id";
List<IModelmodels = doModels.getListOfModels(false);
foreach (IModel model in models)
{
cmbModels.Items.Add(model);
}
cmbModels.SelectedIndex = 0;
--
Stephen Russell
Sr. Production Systems Programmer
CIMSgts
901.246-0159 cell