Hi,
I have a dropdown which binds with a datatable on Page load method.
I want to add a "Select" option to the dropdown on top of the dropdown list.
The following the code that I have used - the issue is the select option is coming at the bottom of the list.
I have a dropdown which binds with a datatable on Page load method.
I want to add a "Select" option to the dropdown on top of the dropdown list.
The following the code that I have used - the issue is the select option is coming at the bottom of the list.
private void fillddlHeadline()
{
DataTable dt = oHead.GetDataActivateHeadlineObserved();
DrpHeadlineObType.DataSource = dt;
DrpHeadlineObType.DataTextField = "Module_Content_Text";
DrpHeadlineObType.DataValueField = "headline_Id";
DrpHeadlineObType.DataBind();
RadComboBoxItem item1 = new RadComboBoxItem();
item1.Text = "Select";
item1.Value = "0";
DrpHeadlineObType.Items.Add(item1);
}
Any ideas?
Thanks...