Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Using HTMLInputRadioButton Control in a Datagrid

Reply
Thread Tools

Using HTMLInputRadioButton Control in a Datagrid

 
 
Elliot Rodriguez
Guest
Posts: n/a
 
      11-30-2004
Thanks for reading my post.

I have a requirement for the UI I am developing that necessitates I use
a radio button within each row of a DataGrid (dont ask, I was instructed
to do it this way). The radio button's value needs to be assigned a
value from a column in the grid's datasource.

I am having difficulty applying the value to the radio button.

It seems that if I leave the control as a plain HTMLInputRadioButton, I
cannot access the "value" attribute to assign my desired value - I get
an "Object reference not set to an object" error.

If I turn it into a server control, I can assign something to the value
attribute, but the radio button is assigned its own unique name (like
this: nameofthegrid_controlordinalnumber_thenameIwant), overwriting my
settings (specified both in the VS designer as well as in code). Since
the names are unique, the form now permits the user to select multiple
radio buttons.

My desired result - the user should only be allowed to select 1 radio
button out of the rows.

Any thoughts on how I can accomplish this?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HtmlInputRadioButton Inside a Datalist =?Utf-8?B?U291cmF2IER1dHRhIEd1cHRh?= ASP .Net 3 12-26-2005 07:20 AM
HTMLInputRadioButton Question Roshawn ASP .Net 1 08-09-2004 09:52 PM
Accessing htmlinputradiobutton value in server code smita ASP .Net Web Controls 0 04-28-2004 10:56 AM
To all Gurus: How can I edit/update a DataGrid in a DataGrid (nested DataGrid)? Possible? Andreas Klemt ASP .Net Datagrid Control 0 10-08-2003 01:19 AM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com ASP .Net 0 07-01-2003 09:26 PM



Advertisments