473,503 Members | 11,508 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Updating Gridview with Radiobuttonlist

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
Dec 15 '07 #1
3 2186
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
jI'm trying to build a simple booking page.
j>
jI have a Gridview and one of the columns is a Radiobuttonlist with
jthe options Attending / Not Attending. This is bound to the field
j[status].
j>
jThis works ok, it selects the correct radio button based on the field
jtext. But I cannot get it to update when I change the selected
jradiobutton.
j>
Dec 15 '07 #2
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
jCan anyone point me in the right direction? I have got it to post
jback, and even click update in Edit template as could not get
janything else to work. But it just wont update the field. I cannot
jwork out how to add the radiobuttonlist as a parameter in the update
jstatement either.
j>
Dec 15 '07 #3
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
jCan anyone point me in the right direction? I have got it to post
jback, and even click update in Edit template as could not get
janything else to work. But it just wont update the field. I cannot
jwork out how to add the radiobuttonlist as a parameter in the update
jstatement either.
j>
Dec 15 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2304
by: Patrik | last post by:
hello, based on a client login I call a GridView that presents the appropriate questionnaire for that person. I added three columns (template fields) to the gridview that are radiobuttons. The...
1
1714
by: Eric Effer | last post by:
Hi everyone I am tryin to get the selected index from this gridview while selecting the radiobuttonlist. I dont want to use a button for the row though. Anyone knows how to do this? thnks ...
3
2178
by: Marc Grutte | last post by:
Hi I am trying to bind a custom datasource to a gridview whilst paging is enabled. What is missing in this code to make the paging + binding work? thanks M <%@ Page Language="VB" %>
5
23606
by: NKaufman | last post by:
<asp:GridView ID="Basic" runat="server" DataKeyNames="QuestionID,isHeading" AutoGenerateColumns="false" AllowPaging="true" PageSize="100"> <Columns> <asp:BoundField Visible="false"...
1
2325
by: l3d007 | last post by:
I used this example straight from msdn in a gridview that already sorts based on each column. For some reason I cannot get it to sort based on two sorting expressions.Is there some property of the...
1
1966
by: Ben | last post by:
Hi, The gridview contains a radiobuttonlist with boolean values (true/false) coming from a database. In normal mode, the gridview displays True or False for that field. What i want is to...
0
1419
by: =?Utf-8?B?QW5keSBpbiBTb3V0aCBKZXJzZXk=?= | last post by:
I want to use a RadioButtonList Control(HTML) in a GridView control. I can see the RadioButtonList control with each row in the GridView with the code: <asp:GridView ID="GridView1"...
13
3475
by: SAL | last post by:
Hello, I'm trying to include a popup in the ItemTemplate of a gridview row. The ItemTemplate for the field contains a textbox and when the user clicks in the textbox I want a popup panel to show...
1
10746
by: renuami | last post by:
Hello friends please advise....... I am building an application for Survey. For this i have GridView with two Template fields. The first Template has Label (To display question text) and...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7095
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7294
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5602
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4693
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1523
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.