I have am using a custom edit form to update & insert information in my radgrid which contains 3 radcomboboxes & 1 radtextbox. Update works great, edit works but it doesn't set the default values of the drop downs to the current values. I am NOT using auto insert/update/delete. I can set the text value by doing:
But if I try this with the comboboxes and the "SelectedValue=" I get a "Selection out of range Parameter:value" error. I am binding my controls from db information in a hooked up RadGrid1_ItemDataBound method. I'm thinking I have to set the SelectedValue somewhere in this method, after something like:
then where do I go from here? I've spent too long looking through examples and searching this forum, so I apologize if this is easy or should have been easy to find out how.
Thanks.
Text='<%# Eval( "Description" ) %>' |
But if I try this with the comboboxes and the "SelectedValue=" I get a "Selection out of range Parameter:value" error. I am binding my controls from db information in a hooked up RadGrid1_ItemDataBound method. I'm thinking I have to set the SelectedValue somewhere in this method, after something like:
GridItem gridItem = e.Item as GridItem; |
if (!gridItem.OwnerTableView.IsItemInserted) |
then where do I go from here? I've spent too long looking through examples and searching this forum, so I apologize if this is easy or should have been easy to find out how.
Thanks.