problem populating gridView on dropDownList

Discussion in 'ASP .Net' started by =?Utf-8?B?YmlsbCB0aWU=?=, Apr 26, 2006.

  1. I have two dropDownLists A and B outside a gridView.

    A selection made in ddlA causes ddlB to be populated with data from the
    database. The gridView is populated with data according to a selection in
    ddlB.

    ddlA --> ddlB --> gridView

    When a user selects an item in ddlA, I want
    (a) the ddlB to be populated automatically
    (b) the gridView to be populated automatically based on the first item in
    ddlB.

    I have two problems:
    1. the (b) part doesn't work;
    2. if ddlB contains only one item, the item cannot be selected even by
    clicking on it.

    Thank you for your suggestions.
     
    =?Utf-8?B?YmlsbCB0aWU=?=, Apr 26, 2006
    #1
    1. Advertisements

  2. Vlad Iliescu

    Vlad Iliescu Guest

    You could try to also populate the gridview after ddlB is DataBound,
    based on its SelectedItem (if it has one, that is).
     
    Vlad Iliescu, Apr 27, 2006
    #2
    1. Advertisements

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. =?Utf-8?B?Q0hSSVM=?=

    Problem populating dropdownlist control

    =?Utf-8?B?Q0hSSVM=?=, Apr 13, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    392
    Cowboy \(Gregory A. Beamer\)
    Apr 13, 2004
  2. Replies:
    6
    Views:
    625
  3. Jeff

    Problem populating GridView!

    Jeff, Oct 11, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    407
    David R. Longnecker
    Oct 11, 2006
  4. Jeff
    Replies:
    1
    Views:
    479
  5. Jan
    Replies:
    2
    Views:
    817
Loading...

Share This Page