Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread grid cell by coordinates
Tue, Oct 16 2018 11:15 AMPermanent Link

jdforce

Avatar

Hi, I need to do something with a grid cell, like change background color. I have the row and column coordinate information. The grid is bound and filled with a dataset.  I already changed the background when filling the grid (with support's help) using the on update event, but now I can't find a way to arbitrarily assign properties just by having x and y.
Tue, Oct 16 2018 11:44 AMPermanent Link

Walter Matte

Tactical Business Corporation

Bound Grid - Event OnCellUpdate - you cannot access via x / y

See:

https://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_general&page=1&msg=12451#12451


Walter


jdforce wrote:

Hi, I need to do something with a grid cell, like change background color. I have the row and column coordinate information. The grid is bound and filled with a dataset.  I already changed the background when filling the grid (with support's help) using the on update event, but now I can't find a way to arbitrarily assign properties just by having x and y.
Tue, Oct 16 2018 2:23 PMPermanent Link

jdforce

Avatar

Thanks.
Wed, Oct 17 2018 2:14 PMPermanent Link

jdforce

Avatar

How to I highlight a cell then, at will?

What am doing is running a "find". It finds the data but displays it at the bottom of the grid, which is not visible for the user.
I want to find and highlight the cell where the value is and/or highlight all the row.

I have been reading all the documentation looking for a function or procedure but it seems to be a mistery right now.
Tue, Oct 23 2018 1:32 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< How to I highlight a cell then, at will? >>

You use the OnCellUpdate event and look at the Data property of the TGridCell instance that is passed in to that event handler.

<< What am doing is running a "find". It finds the data but displays it at the bottom of the grid, which is not visible for the user. >>

Is the grid bound to the same TDataSet instance as what you're using for finding the row ?

Tim Young
Elevate Software
www.elevatesoft.com
Image