By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,993 Members | 1,883 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,993 IT Pros & Developers. It's quick & easy.

Select RadioButtonList Item via Databinding

P: n/a
Dear all,

I understand that I can bind a DataSet to a RadioButtonList control
with properties DataTextField and DataValueField. ASP.NET will have
the ListItem objects generated. Nice.

Well consider this:
John, 1, 1
Amy, 2, 0
[xxx], [x], 0

Is it possible to bind the [Selected] information to the
RadioButtonList? Of course I can select an item explicitly after data
binding. However when the [Selected] field is data-driven, I will be
looping the DataSet with conditional statements, OR I will be
retrieving the only ONE row for [Selected]=1. A step forward, I also
want to make use of the UpdateCommand available in DataBinding to
update the [Selected] field at DB.

Does it bother you too?
Any ideas?

Big Thanks!
Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.