Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Updating Gridview with Radiobuttonlist

Reply
Thread Tools

Updating Gridview with Radiobuttonlist

 
 
James
Guest
Posts: n/a
 
      12-15-2007
Hello,

I'm trying to build a simple booking page.

I have a Gridview and one of the columns is a Radiobuttonlist with the
options Attending / Not Attending. This is bound to the field [status].

This works ok, it selects the correct radio button based on the field text.
But I cannot get it to update when I change the selected radiobutton.

Can anyone point me in the right direction? I have got it to post back, and
even click update in Edit template as could not get anything else to work.
But it just wont update the field. I cannot work out how to add the
radiobuttonlist as a parameter in the update statement either.

Any advice would be wonderfull.
Thanks
James
 
Reply With Quote
 
 
 
 
Michael Nemtsev [MVP]
Guest
Posts: n/a
 
      12-15-2007
Hello james,

do u use AutoPostBack = "true" property of RadioButtonList?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


j> I'm trying to build a simple booking page.
j>
j> I have a Gridview and one of the columns is a Radiobuttonlist with
j> the options Attending / Not Attending. This is bound to the field
j> [status].
j>
j> This works ok, it selects the correct radio button based on the field
j> text. But I cannot get it to update when I change the selected
j> radiobutton.
j>


 
Reply With Quote
 
 
 
 
Michael Nemtsev [MVP]
Guest
Posts: n/a
 
      12-15-2007
Hello james,

emm, sorry, missed that u have autopostback as true

btw, if you have postback, that why u cant re-bind your datagrid with new
updated info?
not quite understand u
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


j> Can anyone point me in the right direction? I have got it to post
j> back, and even click update in Edit template as could not get
j> anything else to work. But it just wont update the field. I cannot
j> work out how to add the radiobuttonlist as a parameter in the update
j> statement either.
j>


 
Reply With Quote
 
James
Guest
Posts: n/a
 
      12-15-2007
Hi

Thanks for your reply.

Yes Think I was working too late (4am UK time). I was trying to do some code
to take the value but could not reference the Template field in the Gridview.

Actualy have fixed it now by just binding the radiobuttonlist to the field
and doing a normal update comand parameter.

Thanks anyway,
James

"Michael Nemtsev [MVP]" wrote:

> Hello james,
>
> emm, sorry, missed that u have autopostback as true
>
> btw, if you have postback, that why u cant re-bind your datagrid with new
> updated info?
> not quite understand u
> ---
> WBR,
> Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
>
> "The greatest danger for most of us is not that our aim is too high and we
> miss it, but that it is too low and we reach it" (c) Michelangelo
>
>
> j> Can anyone point me in the right direction? I have got it to post
> j> back, and even click update in Edit template as could not get
> j> anything else to work. But it just wont update the field. I cannot
> j> work out how to add the radiobuttonlist as a parameter in the update
> j> statement either.
> j>
>
>
>

 
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
GridView RadioButtonList Values renuami ASP .Net 0 02-10-2009 09:48 PM
RadioButtonList(HTML) Control in a GridView Andy in South Jersey ASP .Net 0 07-07-2008 02:18 PM
can't change radiobuttonlist displayed value in normal mode of gridview Ben ASP .Net 1 05-29-2008 07:22 PM
Updating JTable Atomically - block data changes while updating. news.rcn.com Java 2 12-10-2007 11:49 AM
GridView nested in DataList - refreshing corresponding DataList row after updating GridView row H5N1 ASP .Net 0 04-26-2006 11:41 PM



Advertisments