Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Hiding initial row selection in Data-bound Grid
Mon, Aug 10 2015 8:58 PMPermanent Link

Trinione

How can a data-bound grid NOT have any row selected or greyed out initially? In other words, no focus whatsoever on any row.

DataSet.RowNo := -1  //does not hide it Frown
Tue, Aug 11 2015 2:33 AMPermanent Link

Michael Dreher

Trinione wrote:

 // How can a data-bound grid NOT have any row selected or greyed out initially?
 // In other words, no focus whatsoever on any row.
 //
 // DataSet.RowNo := -1  //does not hide it Frown

According to the help, setting the row index to an invalid value has no effect; valid values are 0..NumRecords-1. Doing so would correspond setting the "cursor" of the dataset to an invalid state. I guess, it's not possible. Perhaps there are visual "tricks" playing with the colors. Someone may correct me.

Michael Dreher
Tue, Aug 11 2015 12:15 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< How can a data-bound grid NOT have any row selected or greyed out initially? In other words, no focus whatsoever on any row.  >>

MyGrid.RowIndex := -1;

should do it.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Aug 11 2015 1:22 PMPermanent Link

Trinione

<< MyGrid.RowIndex := -1;
should do it. >>

It does.

Thanks.
Image