HI, I am note sure why I am getting such error, but whenI got to the last row in a datagrid, and delete it,I get the following errror.Please advice for any help.
thanks
Al
Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount.
Source Error:
Line 41: MyCommand.Fill(DS, "investor"
Line 42: dg.DataSource=DS.Tables("investor"
.DefaultView
Line 43: dg.DataBind()
Line 44: ShowPageInformation()
Line 45: End Sub
thanks
Al
Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount.
Source Error:
Line 41: MyCommand.Fill(DS, "investor"
Line 42: dg.DataSource=DS.Tables("investor"
Line 43: dg.DataBind()
Line 44: ShowPageInformation()
Line 45: End Sub