GridView: Filtr DropDownList from another DropDownList

G

Guest

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")
'Dim cmbCodClasArt As DropDownList =
CType(dgEquiArt.Items(dgEquiArt.EditItemIndex).Cells(5).Controls(1),
DropDownList)
'Dim cmbArt As DropDownList =
CType(dgEquiArt.Items(dgEquiArt.EditItemIndex).Cells(7).Controls(1),
DropDownList)
CargarClasDetArt(cmbCodClasArt.SelectedValue) 'Loads the dataview




What's the problem? Could someone help me?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,832
Latest member
GlennSmall

Latest Threads

Top