highlight last item

2 posts, 0 answers
  1. Tina
    Tina avatar
    130 posts
    Member since:
    Jul 2011

    Posted 06 Dec 2012 Link to this post

    How to make the last item in combobox selected which is binded with sqldatasource?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 06 Dec 2012 Link to this post

    Hi,

    Try the following code to achieve your scenario.
    C#:
    protected void Button1_Click(object sender, EventArgs e)
     {
             RadComboBox1.Items[RadComboBox1.Items.Count -1].Selected = true;
     }

    Thanks,
    Shinu.
Back to Top