Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Selecting the First Row in a TGrid.
Tue, Feb 18 2014 6:15 PMPermanent Link

Steve Gill

Avatar

I've notice an interesting error message that can occur when using the FirstRow method of TGrid.

If the TGrid's RowSelect property is set to False, calling the FirstRow method in code will result in this error:

"Error: Column index -1 out of bounds

Line: 15173"

The solution, of course, is to set RowSelect to True.  Sometimes I forget this and pore through my code trying to find where I stuffed up. Then it dawns on me.  

Hey, I never said I was bright. Smile
Mon, Feb 24 2014 4:07 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Steve,

<< If the TGrid's RowSelect property is set to False, calling the FirstRow
method in code will result in this error: >>

That's a bug - it should work regardless of whether RowSelect=True.

I'll have a fix in the next build.

Tim Young
Elevate Software
www.elevatesoft.com
Image