469,657 Members | 1,825 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,657 developers. It's quick & easy.

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 1481
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Kilic Beg via .NET 247 | last post: by
2 posts views Thread by pei_world | last post: by
4 posts views Thread by Richard Roche | last post: by
1 post views Thread by Vijay Kerji | last post: by
reply views Thread by Sean | last post: by
2 posts views Thread by Peter | last post: by
5 posts views Thread by Me LK | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.