I have a grid that works great.
When I edit it I fill a combo box with data. Everything works great until I change EditMode to InPlace. When I do that the combo box has the DataTextField in its SelectedValue field.
Here is how I load the data into the RadComboBox.
When I read the data I do this.
If I have EditMode="InPlace" in my MasterTableView tag then the .SelectedValue equals the Description instead of the ID.
If I remove EditMode="InPlace" then .SelectedValue equals the ID.
When I edit it I fill a combo box with data. Everything works great until I change EditMode to InPlace. When I do that the combo box has the DataTextField in its SelectedValue field.
Here is how I load the data into the RadComboBox.
ddlSecurityRole.DataSource = ocRolesddlSecurityRole.DataTextField = "Description"ddlSecurityRole.DataValueField = "ID"ddlSecurityRole.DataBind()When I read the data I do this.
O.ID_SecurityRole = CLng(DirectCast(objEI("SecurityRole").Controls(0), RadComboBox).SelectedValue)If I have EditMode="InPlace" in my MasterTableView tag then the .SelectedValue equals the Description instead of the ID.
If I remove EditMode="InPlace" then .SelectedValue equals the ID.