Handle the ItemDataBound event in your code. Then get the RadioButtonList
using:
RadioButtonList rbl = (RadioButtonList) e.Item.FindControl("myRBL");
This gets the RadioButtonList for the current item in the DataList. Then set
as selected the RadioButton you like.
Hope this helps!
Regards,
Kostadin Kostov
"pi***********@psitek.com" wrote:
Hi,
I have a DataList with an Item Template that contains an image and
three radio buttons, which are used to indicate the image's status. How
can I set the appropriate radio button to checked, when I load the
DataList from the database?
Thanks in advance.
Pierre