GridView: Filtr DropDownList from another DropDownList

Discussion in 'ASP .Net' started by =?Utf-8?B?SnVhbmpv?=, Dec 23, 2005.

  1. 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?
     
    =?Utf-8?B?SnVhbmpv?=, Dec 23, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mr2_93
    Replies:
    1
    Views:
    3,603
    mr2_93
    Oct 2, 2005
  2. tshad
    Replies:
    8
    Views:
    2,236
    tshad
    Oct 19, 2005
  3. =?Utf-8?B?SnVhbmpv?=

    GridView: Filter DropDownList for another DropDownList

    =?Utf-8?B?SnVhbmpv?=, Dec 29, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    1,302
    =?Utf-8?B?SnVhbmpv?=
    Dec 29, 2005
  4. mark4asp
    Replies:
    1
    Views:
    526
    mark4asp
    Mar 26, 2007
  5. Andrew Jocelyn
    Replies:
    2
    Views:
    1,528
    Allen Chen [MSFT]
    Apr 27, 2009
Loading...

Share This Page