This is a migrated thread and some comments may be shown as answers.

highlight last item

1 Answer 26 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 06 Dec 2012, 10:47 AM
How to make the last item in combobox selected which is binded with sqldatasource?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Dec 2012, 11:10 AM
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.
Tags
ComboBox
Asked by
Tina
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or