How to change the background color of a cell in a Data Grid

Creating desktop or client-server database solutions?

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
sandoval31
Posts: 8
Joined: Wed Dec 14, 2016 3:44 pm

How to change the background color of a cell in a Data Grid

Post by sandoval31 » Wed Dec 14, 2016 4:44 pm

Hello,

In a Data Grid table, I would like to change the backgroud color of a "selected" cell.

In the table, the user can select a cell in each row (I used a custom property that I increment each time the user click on the same row). I would like to highlight the selected cell, for instance by changing the bg color of it.

How can I do that ? Thanks a lot.

Klaus
Posts: 9760
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: How to change the background color of a cell in a Data G

Post by Klaus » Fri Jan 06, 2017 3:36 pm

Hola sandoval31,

although "database" and "datagrid" have "data" in their names, they are completely different beasts! 8)
Maybe you should post your question in the beginner or intermeiate forum again?


Best

Klaus

Post Reply

Return to “Databases”