Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread set grid's font color or backcolor according bound dataset's value
Mon, Jan 9 2017 9:14 AMPermanent Link

kentersoft

I know OnCellUpdate can set cell's font color, but i want to according bound dataset's value, not the cell's value,
search forum, i have found a old thread, but i can't force the sort same, so feature request can OnCellUpdate event have some method or parameter to get the bound dataset,

question 2:

Is there any quick method to set whole row's font color or backgroud color according dataset's value avoid set every cell's OnCellUpdate event.

thanks!
Mon, Jan 9 2017 4:14 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< I know OnCellUpdate can set cell's font color, but i want to according bound dataset's value, not the cell's value,
search forum, i have found a old thread, but i can't force the sort same, so feature request can OnCellUpdate event have some method or parameter to get the bound dataset,  >>

The only thing that each cell knows of is its own contents, hence that is the only thing that can be used to conditionally color the cell, etc.

<< Is there any quick method to set whole row's font color or backgroud color according dataset's value avoid set every cell's OnCellUpdate event. >>

No, not that I can think of, due to the above constraints.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Jan 10 2017 5:59 AMPermanent Link

Uli Becker

> Is there any quick method to set whole row's font color or backgroud color according dataset's value avoid set every cell's OnCellUpdate event.

I use a "quick and dirty" workaround for that by adding (invisible)
characters or spaces to the column's values when preparing the query
depending on the value.

In the OnCellUpdate event you can interpret that.

The screenshot shows an app where it's realized that way.

Uli




Attachments: Clip11.png
Tue, Jan 10 2017 6:22 AMPermanent Link

Walter Matte

Tactical Business Corporation

That's thinking outside the 'cell'.   Clever and functional.  Nice UI too.

Walter
Tue, Jan 10 2017 7:12 AMPermanent Link

kentersoft

<
The screenshot shows an app where it's realized that way.

Uli
>

Beautiful, thanks!
Image