Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Changing cell color in uitable
Date: Thu, 27 Aug 2009 05:26:00 +0000 (UTC)
Organization: University of Utah
Lines: 7
Message-ID: <h755d8$snn$1@fred.mathworks.com>
References: <ef5b1e4.-1@webcrossing.raydaftYaTP> <ef5b1e4.0@webcrossing.raydaftYaTP> <ef5b1e4.1@webcrossing.raydaftYaTP> <ef5b1e4.2@webcrossing.raydaftYaTP> <ef5b1e4.3@webcrossing.raydaftYaTP> <h1tb21$m3v$1@fred.mathworks.com> <h3au1j$h43$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1251350760 29431 172.30.248.35 (27 Aug 2009 05:26:00 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 27 Aug 2009 05:26:00 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 811741
Xref: news.mathworks.com comp.soft-sys.matlab:566314


Just in case anyone is interested...

My GUI table is only used to display information and is not editable so this was a great solution for me.  

Clement Val sent me this:

Simply, the uitable supports HTML, so you just have to put something like '<html><span style="background-color: #AABBCC;">your content here</span></html>' in the data field, and the background color is changed. However, if the field needs to be editable, this won't work : as soon as he clicks it, the user displays and edits everything, including the html code.