473,386 Members | 1,864 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,386 software developers and data experts.

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 1612
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
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...

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.