473,395 Members | 2,192 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,395 software developers and data experts.

Radio button and Dropdownlist in Datagrid Edit

jc
I am using Datagrad template, while user click on Edit, one column will show
radion buttons (Yes/No), the other column will show a Dropdownlist which
should show different contents depend on the user selection on Radio button.

How do I do that? I am stuck..

JimmyChang
May 26 '06 #1
4 3768
you will have to do this with JavaScript.
you have to enter these controls in EditTemplate of DataGrid.
for cascading controls take a look here - these are dropdowns but
still...

http://atlas.asp.net/atlastoolkit/Ca...gDropDown.aspx

hope this helps
Galin Iliev[MCSD.NET]
www.galcho.com

May 26 '06 #2
jc
I will do some testing, thank you for fast response!

"Galcho[MCSD.NET]" wrote:
you will have to do this with JavaScript.
you have to enter these controls in EditTemplate of DataGrid.
for cascading controls take a look here - these are dropdowns but
still...

http://atlas.asp.net/atlastoolkit/Ca...gDropDown.aspx

hope this helps
Galin Iliev[MCSD.NET]
www.galcho.com

May 26 '06 #3
jc
I forget to mention, I am using Visual Studio 2003 (C#), ATLAS only works
with Visual Studio 2005?

"Galcho[MCSD.NET]" wrote:
you will have to do this with JavaScript.
you have to enter these controls in EditTemplate of DataGrid.
for cascading controls take a look here - these are dropdowns but
still...

http://atlas.asp.net/atlastoolkit/Ca...gDropDown.aspx

hope this helps
Galin Iliev[MCSD.NET]
www.galcho.com

May 26 '06 #4
you can always to write custom JS to this.

see here
http://www.w3schools.com/js/js_obj_htmldom.asp

hope this helps
Galin Iliev[MCSD.NET]
www.galcho.com

May 28 '06 #5

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

Similar topics

12
by: Stanley J Mroczek | last post by:
How do you load a dropdownlist when edit is clicked in a datagrid ? <Columns> <asp:BoundColumn DataField="OptionDescription" ItemStyle-Wrap="True" HeaderText="Option...
2
by: rmorvay | last post by:
I am trying to dynamically build a dropdownlist and bind it to a cell in a grid. I tried to utilize the following code but I am stuck at the point where I bind the dropdownlist to the grid cell. ...
0
by: Wayneb | last post by:
Hi I have a datagrid with autogenerates columns based upon a dataset I have constructed from the results of database query - pretty noddy stuff. When you click on Edit I remove the standard...
2
by: Stephan Bour | last post by:
Hi, Ičve tried to implement a solution to populate a dropdownlist inside an editable datagrid. The code is simple enough and an example can be found here:...
4
by: David Colliver | last post by:
Hi all, I am having a slight problem that hopefully, someone can help me fix. I have a form on a page. Many items on the form have validation controls attached. Also on this form are...
1
by: Stu | last post by:
Hi, I have a button in the footer of a datagrid that sometimes does not tigger the item command. The page is quite large & has a number of homegrown controls in it. Has anyone come across this...
0
by: Daniel Doyle | last post by:
Hello and apologies in advance for the amount of code in this post. I've also sent this message to the Sharepoint group, but thought that ASP.NET developers may also be able to help, even though...
1
by: jimb | last post by:
I can get the dropdownlist into the datagrid, and I can populate it, but I can't read it. Anybody have a working example of a dropdownlist in an editable grid? Thanks. -- .....
1
by: pleaseexplaintome | last post by:
Hi all, I have a datagrid with a dropdownlist and would like to have the dropdownlist display a database value correctly while the grid is in edit mode. I have a templatecolumn as follows: ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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.