Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > GridView: Filtr DropDownList from another DropDownList

Thread Tools

GridView: Filtr DropDownList from another DropDownList

Posts: n/a

Before, I was working with 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 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,
Dim cmbCodClasDetArt As DropDownList =
'Dim cmbCodClasArt As DropDownList =
CType(dgEquiArt.Items(dgEquiArt.EditItemIndex).Cel ls(5).Controls(1),
'Dim cmbArt As DropDownList =
CType(dgEquiArt.Items(dgEquiArt.EditItemIndex).Cel ls(7).Controls(1),
CargarClasDetArt(cmbCodClasArt.SelectedValue) 'Loads the dataview

What's the problem? Could someone help me?

Reply With Quote

Thread Tools

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
When I set the DropDownList.SelectedIndex of ONE DropDownList they ALL change! S_K ASP .Net 5 11-14-2007 04:51 PM
DropDownList inside GridView: How to set SelectedIndex for the DropDownList? keithb ASP .Net 1 11-01-2006 05:24 AM
GridView: Filter DropDownList for another DropDownList =?Utf-8?B?SnVhbmpv?= ASP .Net 0 12-29-2005 07:44 AM
databinding a Dropdownlist to another dropdownlist tshad ASP .Net 8 10-19-2005 10:00 PM
Using a data-bind dropdownlist to populate another data-bind dropdownlist mr2_93 ASP .Net 1 10-02-2005 05:07 PM