﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » Updates and Information » StrataFrame Users Contributed Samples  » color  / listview</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 08 Apr 2026 09:45:14 GMT</lastBuildDate><ttl>20</ttl><item><title>color  / listview</title><link>http://forum.strataframe.net/FindPost31916.aspx</link><description>&lt;span id="result_box" class="" lang="en"&gt;&lt;span class="hps"&gt;Hello,&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span class="hps"&gt;How to display&lt;/span&gt; &lt;span class="hps"&gt;a color in the&lt;/span&gt; &lt;span class="hps"&gt;second column of a&lt;/span&gt; &lt;span class="hps"&gt;listview&lt;/span&gt; &lt;span class="hps"&gt;in&lt;/span&gt; &lt;span class="hps"&gt;the event&lt;/span&gt; &lt;span class="hps"&gt;RowPopulating&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span class="hps"&gt;cordially&lt;/span&gt;&lt;br/&gt;&lt;span class="hps"&gt;Mohamed&lt;/span&gt; &lt;span class="hps"&gt;Mimouni&lt;/span&gt;&lt;/span&gt;</description><pubDate>Fri, 15 Mar 2013 11:47:41 GMT</pubDate><dc:creator>Mimouni Mohamed</dc:creator></item><item><title>RE: color  / listview</title><link>http://forum.strataframe.net/FindPost31922.aspx</link><description>The MicroFour.StrataFrame.UI.Windows.Forms.ListView does not support changing the background color of a single column by default. &amp;nbsp;We use standard System.Windows.Forms.ListViewItems for that list view, and the only way to change the background color on a column would be to implement OWNER_DRAW on the list view, which is a very involved process.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;The MicroFour.StrataFrame.UI.Windows.Forms.StrataListView DOES support background colors on each of the individual sub-items (cells) in the list view. &amp;nbsp;It does not, however, have the same ListPopulationSettings as the standard ListView, so you would need to populate the list with the StrataListViewItems manually. &amp;nbsp;While you are building the list, you would set the background color on the column like this:&lt;br/&gt;&lt;br/&gt;&lt;div&gt;if (condition)&lt;div&gt;{&lt;div&gt;&amp;nbsp; &amp;nbsp;strataListItem.SubItems[3].BackgroundColor = Color.Red;&lt;div&gt;}</description><pubDate>Fri, 15 Mar 2013 11:47:41 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>