Hello.
I have a RadGrid with an edit item template. In this template, I put a user control. In this user control i have a RadComboBox.
When i click on edit in my RadGrid, the selected value of the RadComboBox is always the first.
Here, the page_load of the user control :
The selected value is 134, but on the radgrid edit item template, the selected value is always the first.
I have try it on a simple page, it works.
Thanks.
I have a RadGrid with an edit item template. In this template, I put a user control. In this user control i have a RadComboBox.
When i click on edit in my RadGrid, the selected value of the RadComboBox is always the first.
Here, the page_load of the user control :
protected void Page_Load(object sender, EventArgs e) |
{ |
if (RCBFrequencesUserControl.Items.Count == 0) |
{ |
RCBFrequencesUserControl.DataSource = Params.GetFrequence(webUtility.getConnectedUser()); |
RCBFrequencesUserControl.DataTextField = "libelle"; |
RCBFrequencesUserControl.DataValueField = "idfrequence"; |
RCBFrequencesUserControl.DataBind(); |
RCBFrequences.SelectedValue = "134"; |
} |
} |
The selected value is 134, but on the radgrid edit item template, the selected value is always the first.
I have try it on a simple page, it works.
Thanks.