C
CDARS
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:
[Text],[Value],[Selected]
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!
John
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:
[Text],[Value],[Selected]
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!
John