G
Guest
Hi,
I have in a dropdownlist the following values: "aa", "bb", "cc"
I want the item "bb" will be the selected item. I can find it in a
collection by:
myItem = myControl.Items.FindByText("bb");
To make this item selected I can use:
int index = myControl.Items.IndexOf(myItem).
is there any more simple way how to do it? Something like index =
GetIndex("bb"); i can not find such a method.
Thanks,
Lubomir
I have in a dropdownlist the following values: "aa", "bb", "cc"
I want the item "bb" will be the selected item. I can find it in a
collection by:
myItem = myControl.Items.FindByText("bb");
To make this item selected I can use:
int index = myControl.Items.IndexOf(myItem).
is there any more simple way how to do it? Something like index =
GetIndex("bb"); i can not find such a method.
Thanks,
Lubomir