Mattersphere Developers Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
Heather@FootAnstey
Posts : 57
Join date : 2018-12-19

Search List Row Backcolor Empty Search List Row Backcolor

Fri 17 Apr 2020 - 15:16
Original Post: CDPLL 25/07/2014 16:55:32

"Good Afternoon, Is there a way to look at a value in a searchlist and change the backcolor of the row based on this value??Seems like something you should be able to do I just can't get the syntax right. Kind regards Karl"

Responses:

GaryC 25/07/2014 17:10:33
"Hello!

The search list user guide gives a couple of examples, but in summary: add this to the initialise event of the search list: this.EnableBeforeDisplayCellEvent = true;
and then in the BeforeCellDisplay event add in your logic and back colour e.g. if (e.ColumnName == “Exported” && e.Text == “No”)
{

e.BackColor = System.Drawing.Color.Coral; e.ForeColor = System.Drawing.Color.White;
}
"
Back to top
Permissions in this forum:
You cannot reply to topics in this forum