Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: How to databind a DataGrid DropDownList in another DropDownList's SelectedIndexChanged event?


Message #1 by "J" <goality@s...> on Wed, 13 Feb 2002 15:08:56
Hi,



I have a DataGrid with two DropDownLists, project and subproject.

Dropdownlist's datasources are in dataviews (projectdataview and 

subprojectdataview).



In the SelectedIndexChanged event of project dropdownlist I've filled the 

subprojectdataview by the values chosen from project dropdownlist, but I 

cannot databind the subprojectdataview to the subproject dropdownlist.



Does anyone know how to databind a datagrid dropdownlist in other 

dropdownlist's SelectedIndexChanged event?

Message #2 by "McCloy, Russell" <Russell.McCloy@B...> on Thu, 14 Feb 2002 08:25:36 +1100
Cant you just call another SUB with the onlick="anotherSub()"



and databind to your second dropdown in there?



Not sure if this is what you mean!



RuSs









-----Original Message-----

From: J [mailto:goality@s...]

Sent: Thursday, 14 February 2002 2:09 AM

To: ASP+

Subject: [aspx] How to databind a DataGrid DropDownList in another

DropDownList's SelectedIndexChanged event?





Hi,



I have a DataGrid with two DropDownLists, project and subproject.

Dropdownlist's datasources are in dataviews (projectdataview and 

subprojectdataview).



In the SelectedIndexChanged event of project dropdownlist I've filled the 

subprojectdataview by the values chosen from project dropdownlist, but I 

cannot databind the subprojectdataview to the subproject dropdownlist.



Does anyone know how to databind a datagrid dropdownlist in other 

dropdownlist's SelectedIndexChanged event?






Message #3 by "J" <goality@s...> on Tue, 19 Feb 2002 13:34:35
The problem is that I can't access the dropdownlist's databind method.



> Cant you just call another SUB with the onlick="anotherSub()"

> 

> and databind to your second dropdown in there?

> 

> Not sure if this is what you mean!

> 

> RuSs

> 

> 

> 

> 

> -----Original Message-----

> From: J [mailto:goality@s...]

> Sent: Thursday, 14 February 2002 2:09 AM

> To: ASP+

> Subject: [aspx] How to databind a DataGrid DropDownList in another

> DropDownList's SelectedIndexChanged event?

> 

> 

> Hi,

> 

> I have a DataGrid with two DropDownLists, project and subproject.

> Dropdownlist's datasources are in dataviews (projectdataview and 

> subprojectdataview).

> 

> In the SelectedIndexChanged event of project dropdownlist I've filled 

the 

> subprojectdataview by the values chosen from project dropdownlist, but I 

> cannot databind the subprojectdataview to the subproject dropdownlist.

> 

> Does anyone know how to databind a datagrid dropdownlist in other 

> dropdownlist's SelectedIndexChanged event?

> 





  Return to Index