We are getting the following error when clicking on a DataGridViewLinkColumn in a DataGridView that has been programatically filled. I have a very simply application that I can send that demonstrates this error.
The error also occurs when simply clicking the arrows at the bottom of the DataGridView to go to a different page. The error is definitely related to the DataGridViewLinkColumn because when I change the column to a regular text column, the errors go away.
Dave
(VS 2010, .NetHTML 6.4 beta2b)
Server Error in '/' Application.
--------------------------------------------------------------------------------
Specified argument was out of the range of valid values.
Parameter name: rowIndex
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.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: rowIndex
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: rowIndex]
Gizmox.WebGUI.Forms.DataGridView.SetSelectedCellCore(Int32 intColumnIndex, Int32 intRowIndex, Boolean blnSelected, Boolean blnClientSource) +336
Gizmox.WebGUI.Forms.DataGridView.RemoveIndividuallySelectedCells(Int32 intColumnIndexException, Int32 intRowIndexException, Boolean blnClientSource) +277
Gizmox.WebGUI.Forms.DataGridView.RemoveIndividuallySelectedCells(Int32 intColumnIndexException, Int32 intRowIndexException) +42
Gizmox.WebGUI.Forms.DataGridView.ClearSelection(Int32 intColumnIndexException, Int32 intRowIndexException, Boolean blnSelectExceptionElement, Boolean blnClientSource) +985
Gizmox.WebGUI.Forms.DataGridView.ClearSelection(Int32 intColumnIndexException, Int32 intRowIndexException, Boolean blnSelectExceptionElement) +47
Gizmox.WebGUI.Forms.DataGridView.SetAndSelectCurrentCellAddress(Int32 intColumnIndex, Int32 intRowIndex, Boolean blnSetAnchorCellAddress, Boolean blnValidateCurrentCell, Boolean blnThroughMouseClick, Boolean blnClearSelection, Boolean blnForceCurrentCellSelection) +192
Gizmox.WebGUI.Forms.DataGridView.MakeFirstDisplayedCellCurrentCell(Boolean blnIncludeNewRow) +206
Gizmox.WebGUI.Forms.DataGridView.OnEnter(EventArgs e) +370
Gizmox.WebGUI.Forms.Control.NotifyEnter() +49
Gizmox.WebGUI.Forms.ContainerControl.UpdateFocusedControl() +347
Gizmox.WebGUI.Forms.ContainerControl.AssignActiveControlInternal(Control objControl) +120
Gizmox.WebGUI.Forms.ContainerControl.ActivateControlInternal(Control objControl, Boolean blnOriginator) +240
Gizmox.WebGUI.Forms.ContainerControl.Gizmox.WebGUI.Forms.IContainerControl.ActivateControl(Control objControl) +38
Gizmox.WebGUI.Forms.Control.FireEvent(IEvent objEvent) +1148
Gizmox.WebGUI.Forms.DataGridView.FireEvent(IEvent objEvent) +245
Gizmox.WebGUI.Forms.RegisteredComponent.Gizmox.WebGUI.Common.Interfaces.IEventHandler.FireEvent(IEvent objEvent) +59
Gizmox.WebGUI.Server.Context.ProcessEvent(Int64 lngTimeMarker, IEvent objEvent) +319
A.c4d3cdb893b7f640a5aa2a40bfe2211b1.ProcessRequest(HostContext objHostContext) +1694
[HttpException (0x80004005): Specified argument was out of the range of valid values.
Parameter name: rowIndex]
A.c4d3cdb893b7f640a5aa2a40bfe2211b1.HandleApplicationException(Exception objException, HostContext objHostContext) +190
A.c4d3cdb893b7f640a5aa2a40bfe2211b1.ProcessRequest(HostContext objHostContext) +1733
[HttpException (0x80004005): Specified argument was out of the range of valid values.
Parameter name: rowIndex]
A.c4d3cdb893b7f640a5aa2a40bfe2211b1.ProcessRequest(HostContext objHostContext) +4321
Gizmox.WebGUI.Hosting.HostHttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +112
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; WebGUI Version:4.0.30319.237