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

Get the DataTextField

2 Answers 69 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 29 Jul 2010, 10:03 PM
 I know how to get the SelectedValue, but I also want the DataTextField/Name when I submit the form. Anyone know how to obtain it when I submit the form?

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 30 Jul 2010, 07:29 AM
Hello Mike,


You will get the selected item text by using following code:

// string value = RadComboBox1.SelectedValue;  // Value
string text = RadComboBox1.SelectedItem.Text;  // SelectedItem text



-Shinu.
0
Mike
Top achievements
Rank 1
answered on 30 Jul 2010, 01:03 PM
Thank you Shinu!
Tags
ComboBox
Asked by
Mike
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Mike
Top achievements
Rank 1
Share this question
or