PC Review


Reply
Thread Tools Rate Thread

DataGrid And DropDown

 
 
HalaszJ
Guest
Posts: n/a
 
      8th Dec 2003
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

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 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

direction
>to get this problem solved.
>
>thanks
>.
>

 
Reply With Quote
 
 
 
 
Angela
Guest
Posts: n/a
 
      10th Dec 2003
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 (E-Mail Removed) 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

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

>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

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

>direction
>>to get this problem solved.
>>
>>thanks
>>.
>>

>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bind a dropdown in a column in a datagrid based on the dropdown value selected in another column of the datagrid. vishnu Microsoft ASP .NET 1 25th Mar 2006 01:24 PM
DropDown in DataGrid RS Microsoft VB .NET 2 6th Dec 2005 07:13 AM
DropDown in DataGrid RS Microsoft ASP .NET 2 5th Dec 2005 11:44 PM
Is it possible to have a dropdown box in a datagrid? =?Utf-8?B?UGF1bE5hdWRl?= Microsoft ADO .NET 3 15th Sep 2005 07:23 AM
How to add a Dropdown list to a datagrid at runtime (dynamic) without using template columns in ASP.NET and still have the ability to us the datagrid Update event. Daniel Roth Microsoft Dot NET Framework 0 5th Apr 2005 04:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:14 PM.