473,394 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Trouble w/ GridView Radio buttons

Hello Gurus,

I have GridView control on web page which has couple of radio button
controls as one group. On editing a particular row in grid, i have to
validate based on user selection on radio button i have to validate another
column data in the grid. Pl. help me with code snippets. Thank you.

<asp:TemplateField HeaderText="Code Translate">

<ItemTemplate>

<asp:RadioButton GroupName="rdTrans" id="rdTranslateP" runat="server"
Text='P' checked='<%# GetCheckP((string)DataBinder.Eval(Container.DataIt em,
"in_translate")) %>' ToolTip="Permanant" Enabled="False"/>

<asp:RadioButton GroupName="rdTrans" id="rdTranslateT" runat="server"
Text='T' checked='<%# GetCheckT((string)DataBinder.Eval(Container.DataIt em,
"in_translate")) %>' ToolTip="Temporary" Enabled="False"/>

</ItemTemplate>

<EditItemTemplate>

<asp:RadioButton GroupName="rdTransE" id="rdTranslatePE" runat="server"
Text='P' checked='<%# GetCheckP((string)DataBinder.Eval(Container.DataIt em,
"in_translate")) %>' ToolTip="Permanant"/>

<asp:RadioButton GroupName="rdTransE" id="rdTranslateTE" runat="server"
Text='T' checked='<%# GetCheckT((string)DataBinder.Eval(Container.DataIt em,
"in_translate")) %>' ToolTip="Temporary"/>

</EditItemTemplate>
Jan 13 '06 #1
0 1152

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

Similar topics

4
by: Oscar Monteiro | last post by:
I Have to sets of Radio buttons like so: <input type="radio" name=p1 value=1> <input type="radio" name=p1 value=2> <input type="radio" name=p1 value=3> <br> <input type="radio" name=p2 value=1>...
6
by: Craig Keightley | last post by:
I have a page that has n number of radio groups (yes/No) how can i prevent the form being submitted if more than one radio group is not selected? By default all radio groups are unchecked ...
1
by: Krish | last post by:
Hello Gurus, I have GridView control on web page which has couple of radio button controls as one group. On editing a particular row in grid, i have to validate based on user selection on radio...
4
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...
3
by: cpnet | last post by:
I have a GridView which I'm populating from an ObjectDataSource (give the GridView a DataTable). The GridView will have about 20 rows, and only one editable column. The editable column consists...
1
by: =?Utf-8?B?UGF0cmljayBG?= | last post by:
I have a gridview on the page that i want to dynamically populate with radiobuttons, so i went out on the net and found something that works perfectly, it created radionuttons and the postback with...
2
by: dpazza | last post by:
Hi, I'm creating a quiz on using a form in VB 2005 express. I have four sets of questions and answers (labels and radio buttons) and I change between which set of questions is currently shown on...
0
by: chantigadu | last post by:
hi all, i am struck up with designing a page, that is i need to place a radio button in the gridview. if i place it directly i am able to select any number of radio buttons in that...
7
by: wktarin | last post by:
I've constructed a survey form, and I want to make the radio buttons sticky, so that if participants leave the page, they can return to find their answers still in tact. However, I can't seem to find...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.