Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Specifying a selected item in RadioLists 1

Status
Not open for further replies.

qwert231

Programmer
Sep 4, 2001
756
US
With server control radioLists, I want to specify which item is selected after certain actions. This is what I'm trying:

Code:
radioRt.Items(0).Selected

But I get this error:Property access must assign to the property or use its value.

What can I do?
 
radioRt.Items(0).Selected = true

:)
paul
penny1.gif
penny1.gif
 
Thanks Paul. That did it. Now what I would like to do, and I am looking for this, is get the Index value of which item was selected and change that to False.
 
well, if you put the radio buttons in the same "group", you shouldn't have to do that... since only one radio in any single group can be checked at any one time.

penny1.gif
penny1.gif
 
It wasn't working, but here is what I did:
Code:
radioRt.SelectedItem.Selected = False
radioRt.Items(0).Selected = True

Seems to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top