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

Problem in dropdown list in Datagrid..Its urgent

Hi All,

>I am using datagrid control in asp.net with C#.
>I have two dropdown list in datagrid e.g. one dropdown have Classname and another have Studentname.
>now I want to show all the studentname in second dropdown related to their class selected in first dropdown.
>plz help me in above.
>Remember i am using both dropdown in a datagrid..........

Thanks.
Mar 29 '07 #1
4 1429
prabunewindia
199 100+
Hi All,

>I am using datagrid control in asp.net with C#.
>I have two dropdown list in datagrid e.g. one dropdown have Classname and another have Studentname.
>now I want to show all the studentname in second dropdown related to their class selected in first dropdown.
>plz help me in above.
>Remember i am using both dropdown in a datagrid..........

Thanks.
first get the selected class name from the first dropdown list
then get the students name related to that class using query
"select studentName from students where class='that selected class'"
then bind the data to the 2nd one
Mar 29 '07 #2
1.adde dropdowns dynamically to grid.if they are added statically,then u cannot access or capture their raised events .before adding classDDL bind it to its datasource.based on selected value bind second DDL .
added the DDL"s in ITEM CREATED EVENT OF THE DATA GRID
Mar 29 '07 #3
1.adde dropdowns dynamically to grid.if they are added statically,then u cannot access or capture their raised events .before adding classDDL bind it to its datasource.based on selected value bind second DDL .
added the DDL"s in ITEM CREATED EVENT OF THE DATA GRID
Sir I want to know: Inwhich event of datagrid i have to bound the second dropdown with the selected item of first Dropdown List.
tell me in detail.....Its Urgent.
Mar 29 '07 #4
first get the selected class name from the first dropdown list
then get the students name related to that class using query
"select studentName from students where class='that selected class'"
then bind the data to the 2nd one
Sir I want to know: Inwhich event of datagrid i have to bound the second dropdown with the selected item of first Dropdown List.
tell me in detail.....Its Urgent.
Mar 29 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Michelle | last post by:
Hello, I put a dropdown list in ItemTemplate Column. I can select its value from the dropdown list and store in a dataset, but when I retrieve records from dataset, it doesn't show up in the...
3
by: Big Dave | last post by:
I know it's been asked a million times before, but I still can't seem to find an answer that works. I've got a dropdown list in the footer template of a datagrid. The dropdown list databinds,...
1
by: branton ellerbee | last post by:
Has anyone had this problem: you are using a datagrid that is populated by a filter. Let say for arguments sake, it is a list of clients. And you narrow the list with the alphabet using a...
6
by: Jenna Alten | last post by:
I have a datagrid with a template column that contains a dropdown list. I currently fill and display the dropdown list on the page load. This is working correctly. I am NOT using an Edit Column. I...
2
by: Waran | last post by:
I Want to add a dropdown box in a datagrid on Page_Load. This Datagrid shares two tables. One table contains Employee details, and the other having the list of projects the employee is...
2
by: Peter | last post by:
ASP.NET 2003 In the DataGrid how do I select current cell value in the dropdown box when I click on the edit link, currently when I click on the edit link in the DataGrid the dropdown box...
6
by: yasodhai | last post by:
Hi, I used a dropdown control which is binded to a datagrid control. I passed the values to the dropdownlist from the database using a function as follows in the aspx itself. <asp:DropDownList...
2
by: msrahul | last post by:
HI ALL Plz Help Me. I have a datagrid with a few colums. One column is conaining 1's or 0's. Its like a flag column. It either has 0 or 1. Now what i need is that if any row has 1 in this column...
5
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a VS 2008 ASP.NET webform that has a reportview tag on it, accessing an .RLDC report in local report. The columns for the report are essentially: Month Item #1 Item#2 Item#3 ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
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
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.