Why dropdown list created in ItemCreated can't selected

Discussion in 'ASP .Net' started by lucy, Aug 5, 2003.

  1. lucy

    lucy Guest

    I have datagrid, in ItemCreated event, I created a
    dropdown list link to a datatable, now I can't selected a
    item I want. I try lots of way,

    ddlUserName.Items.FindByValue("1111").Selected = true

    ddlUserName.Items.FindByText("mytext").Selected = True

    ddlUserName.SelectedIndex = 2

    ddlUserName.SelectedIndex = ddlUserName.Items.IndexOf
    (ddlUserName.Items.FindByValue("1111"))


    Thanks.
     
    lucy, Aug 5, 2003
    #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. lucy

    dropdown list can't selected.

    lucy, Aug 5, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    500
  2. vishnu
    Replies:
    1
    Views:
    1,253
    Patrick.O.Ige
    Mar 25, 2006
  3. Philippe Camus
    Replies:
    2
    Views:
    2,556
    Philippe Camus
    Mar 30, 2006
  4. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,269
    Smokey Grindel
    Dec 2, 2006
  5. mldardy
    Replies:
    1
    Views:
    772
    mldardy
    Dec 10, 2008
Loading...

Share This Page