Hi,
the exception occured in Version Q1 2008 build 619.
When I run the following code twice
I get the above mentioned exception the second time the code runs.
The content of the DataView is completely different the second time.
The exception is raised here: cboSBOldValue.DataBind();
Exception Details:
System.ArgumentOutOfRangeException was unhandled by user code
Message="Selection out of range\r\nParametername: value"
Source="Telerik.Web.UI"
ParamName="value"
StackTrace:
bei Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource)
bei Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data)
bei System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
bei Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e)
bei Telerik.Web.UI.RadComboBox.PerformSelect()
bei System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
bei CLWorkbench.SQLBox.cboSBOldValue_ItemsRequested(Object o, RadComboBoxItemsRequestedEventArgs e) in H:\projects\ClLoader\SOURCES\CLWorkbench\CLWorkbench\SQLBox.ascx.cs:Zeile 1054.
bei Telerik.Web.UI.RadComboBox.RaiseItemRequestEvent(RadComboBoxItemsRequestedEventArgs args)
bei Telerik.Web.UI.RadComboBox.RaiseCallbackEvent(String eventArgument)
bei Telerik.Web.UI.RadComboBox.System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent(String eventArgument)
bei System.Web.UI.Page.PrepareCallback(String callbackControlID)
InnerException:
Obviously the same issue was already discussed here:
http://www.telerik.com/community/forums/thread/b311D-bbgmmt.aspx
Thank you for your help
regards
Andreas
the exception occured in Version Q1 2008 build 619.
When I run the following code twice
DataView dv2 = dt2.DefaultView;
dv2.Sort = columnName +
" ASC";
cboSBOldValue.Items.Clear();
cboSBOldValue.DataTextField = columnName;
cboSBOldValue.DataValueField = columnName;
cboSBOldValue.DataSource = dv2;
cboSBOldValue.DataBind();
I get the above mentioned exception the second time the code runs.
The content of the DataView is completely different the second time.
The exception is raised here: cboSBOldValue.DataBind();
Exception Details:
System.ArgumentOutOfRangeException was unhandled by user code
Message="Selection out of range\r\nParametername: value"
Source="Telerik.Web.UI"
ParamName="value"
StackTrace:
bei Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource)
bei Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data)
bei System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
bei Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e)
bei Telerik.Web.UI.RadComboBox.PerformSelect()
bei System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
bei CLWorkbench.SQLBox.cboSBOldValue_ItemsRequested(Object o, RadComboBoxItemsRequestedEventArgs e) in H:\projects\ClLoader\SOURCES\CLWorkbench\CLWorkbench\SQLBox.ascx.cs:Zeile 1054.
bei Telerik.Web.UI.RadComboBox.RaiseItemRequestEvent(RadComboBoxItemsRequestedEventArgs args)
bei Telerik.Web.UI.RadComboBox.RaiseCallbackEvent(String eventArgument)
bei Telerik.Web.UI.RadComboBox.System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent(String eventArgument)
bei System.Web.UI.Page.PrepareCallback(String callbackControlID)
InnerException:
Obviously the same issue was already discussed here:
http://www.telerik.com/community/forums/thread/b311D-bbgmmt.aspx
Thank you for your help
regards
Andreas