By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,075 Members | 949 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,075 IT Pros & Developers. It's quick & easy.

GridView: Filter DropDownList for another DropDownList

P: n/a
Hi,

Before, I was working with Asp.net 1.0 and datagrid. I posted a question for
this issue. The solution of this problem is load the second dropdownlist on
the selectedindexchanged event of the first dropdownlist.

Now, I'm working with ASP.net 2.0 and the gridview. I apply the same method
but the second dropdownlist don't shows the rows filtered, it shows the rows
filtered when the gridview was loaded for the first time.

This my code of selectedindexchanged event

Dim cmbCodClasArt As DropDownList = CType(sender, DropDownList)
Dim Fila As GridViewRow = CType(cmbCodClasArt.Parent.Parent, GridViewRow)
Dim cmbCodClasDetArt As DropDownList =
Fila.FindControl"GridcmbCodDetClasArtInsert")

CargarClasDetArt(cmbCodClasArt.SelectedValue) 'Loads the dataview

What's the problem? Could someone help me?
Dec 29 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.