473,474 Members | 1,310 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

DataGrid And DropDown

Is there no work around for this?
-----Original Message-----
I have asked this question on about every board I can
think of and I have yet to get an answer, so If anyone
would know I imagine it would be here.

I have a datagrid, and inside of it in an edit item
template I have a drop down list, I want to be able to
have that dropdown autopostback and run its selectedindex
changed event so that I can populate an addition dropdown.

From what I can tell when I do selected a different item
it does postback but the selectedindex changed event neverfires.

Is this even possible inside of a datagrids edit item
template?

Have I been wasting my time trying to figure this out?

To give a little more insight of what I want this thing todo:

I have a dropdown called Entity and in that dropdown I
have Merchant, Customer... When the user selects Merchant
I need an additional dropdown to pupolate with all the
merchant id's I have in the database, same for
customers ...

Can anyone lend a hand or at least point me in a directionto get this problem solved.

thanks
.

Jul 21 '05 #1
1 1620
there is a way to do this.

the way we solved the problem where I work is we created a
generic DataGrid class and a column template class.

In the ColumnTemplate class in the InstantiateIn method we
set the event handler for the "parent" DropDownList.
Then define the event handler, you can populate a "child"
DropDownList based on what is selected in the "parent".

I have an example if you need one.
Email me at An*************@globalcrossing.com if you need
more help.

Angela
-----Original Message-----
Is there no work around for this?
-----Original Message-----
I have asked this question on about every board I can
think of and I have yet to get an answer, so If anyone
would know I imagine it would be here.

I have a datagrid, and inside of it in an edit item
template I have a drop down list, I want to be able to
have that dropdown autopostback and run its selectedindexchanged event so that I can populate an addition dropdown.
From what I can tell when I do selected a different item
it does postback but the selectedindex changed event

never
fires.

Is this even possible inside of a datagrids edit item
template?

Have I been wasting my time trying to figure this out?

To give a little more insight of what I want this thing

to
do:

I have a dropdown called Entity and in that dropdown I
have Merchant, Customer... When the user selects MerchantI need an additional dropdown to pupolate with all the
merchant id's I have in the database, same for
customers ...

Can anyone lend a hand or at least point me in a

direction
to get this problem solved.

thanks
.

.

Jul 21 '05 #2

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

Similar topics

0
by: Kilic Beg via .NET 247 | last post by:
Hi, I am having trouble adding a dropdown to DataGrid at runtime. I create all boundColumns and the TemplateColumn for the dropdown at runtime. The dropdown has a different datasource then the...
2
by: pei_world | last post by:
I want to implement a key hit with enter to dropdown a combobox that is in the datagrid. in this case I need to override its original behaviours. I found some codes from the web. Does anyone know...
4
by: Richard Roche | last post by:
Is it possible to use a drop combo instead of a text box when using the EditCommand in the Datagrid? Many table columns are bound to 'lookup' tables, user's don't care about the foreign keys,...
1
by: Vijay Kerji | last post by:
Hi, I have a datagrid with dropdown list and Remove hyperlink in it as columns. When I remove a row from the datagrid, Dropdown list selection is retaining its previous value. i.e, removed...
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...
0
by: Sean | last post by:
Hi, I am trying to get this piece of code to work. I have to design a GUI which would look similar to Month |Year |Old | New dropdown |dropdown |4 | dropdown dropdown |dropdown |2 |...
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...
0
by: cindy | last post by:
I have a dynamic datagrid. I have custom classes for the controls public class CreateEditItemTemplateDDL : ITemplate { DataTable dtBind; string strddlName; string strSelectedID; string...
4
by: youvrajasnsm | last post by:
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...
5
by: Me LK | last post by:
I need to add a line to choose a size into a dropdown . Since I have the dropdown nested inside a datagrid this is not working.When a page displays there are several rows of dropdowns but only the...
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
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
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,...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
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.