Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Grid Tech Support » Error with right arrow key Collapse All
Subject Author Date
Andrew Hafer Feb 8, 2007 - 8:34 PM


I created a form with a single control - the Elegant Grid - and set up the grid in the Form_Load event handler as shown below. When I run the program and follow the following steps:

1. Click in the first cell to activate it.
2. Press right arrow key.

the grid then gives an out-of-bounds error. This does not happen when AllowRowSelection is set to True.

Please advise.



Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim grdColumn As Column
Dim dr As DataRow
Dim tCell As TextCell

With grd
.AllowRowSelection = False

grdColumn = New Column

dr = .NewDataRow
tCell = dr.AddNewCell(GetType(TextCell), .Columns(0))
tCell.DataValue = ""

dr = .NewDataRow
tCell = dr.AddNewCell(GetType(TextCell), .Columns(0))
tCell.DataValue = ""
End With
End Sub
End Class

Technical Support Feb 9, 2007 - 8:47 AM

Thank you for reporting the bug. We fixed it and you can download the updated dll from our web site.