Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete record in GridView
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Delete record in GridView
Miscellaneous
Thread ID:
01148016
Message ID:
01148016
Views:
81
Hi All,

I am getting the following error message when trying to delete the record in the GridView. Actually the error happens after the record has been successfully deleted from a SQL Database.

Specified argument was out of the range of valid values.
Parameter name: value
Stack Trace: 


[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: value]
   System.Web.UI.WebControls.GridView.set_SelectedIndex(Int32 value) +280
   System.Web.UI.WebControls.GridView.HandleDeleteCallback(Int32 affectedRows, Exception ex) +352
   System.Web.UI.DataSourceView.Delete(IDictionary keys, IDictionary oldValues, DataSourceViewOperationCallback callback) +119
   System.Web.UI.WebControls.GridView.HandleDelete(GridViewRow row, Int32 rowIndex) +927
   System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +1152
   System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +190
   System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +170
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4921

TIA,
Daniel
Next
Reply
Map
View

Click here to load this message in the networking platform