﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Enhancement Requests  » Add BackColor/ForeColor properties to the ListView columns</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 06 Jun 2026 12:36:17 GMT</lastBuildDate><ttl>20</ttl><item><title>Add BackColor/ForeColor properties to the ListView columns</title><link>http://forum.strataframe.net/FindPost23346.aspx</link><description>I would be really nice to be able to change column colors for the listview.</description><pubDate>Mon, 15 Jun 2009 08:26:47 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Add BackColor/ForeColor properties to the ListView columns</title><link>http://forum.strataframe.net/FindPost23498.aspx</link><description>Thanks.</description><pubDate>Mon, 15 Jun 2009 08:26:47 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Add BackColor/ForeColor properties to the ListView columns</title><link>http://forum.strataframe.net/FindPost23491.aspx</link><description>There are a ton of them out on the web.  Just search for ListView and OwnerDraw:&lt;br&gt;
&lt;br&gt;
[url=http://www.codeproject.com/KB/list/EXListView.aspx]http://www.codeproject.com/KB/list/EXListView.aspx[/url]&lt;br&gt;
&lt;br&gt;
[url=http://www.experts-exchange.com/Programming/Languages/.NET/Q_20872868.html]http://www.experts-exchange.com/Programming/Languages/.NET/Q_20872868.html[/url]&lt;br&gt;
&lt;br&gt;
This is just a function of the standard .NET ListView and handling that event.  In the event you will be given the bounds, column and row information then you just render as you require.  This does require some effort.  This is also something that we do not intend to change on the existing ListView as it would require a lot of effort to make this a "global" resolution and our efforts would be better served on the new StrataListView control.</description><pubDate>Mon, 15 Jun 2009 06:59:19 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Add BackColor/ForeColor properties to the ListView columns</title><link>http://forum.strataframe.net/FindPost23483.aspx</link><description>[quote][b]Trent L. Taylor (06/05/2009)[/b][hr]... If you want to render the column, you will have to do an owner draw, which means you have to render all columns.  It isn't that hard, but it will definitely be more work than just setting a property.  This is something that will be in the future StrataListView control.  Adding this logic to the existing ListView would require an entire Owner draw...thus using the new control would be more logical.  Sorry :unsure:[/quote]&lt;br&gt;
&lt;br&gt;
I am really in the need to add BackColor to a couple of columns in a several ListView, do have any sample or reference code that I may use as start point to try to get this done?</description><pubDate>Fri, 12 Jun 2009 15:31:59 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Add BackColor/ForeColor properties to the ListView columns</title><link>http://forum.strataframe.net/FindPost23389.aspx</link><description>In short, it exposes the entire ListView Item so you can set anything on it you like such as the fore color, back color, etc.&amp;nbsp; You are given direct access to the ListViewItem properties.&amp;nbsp; That is really the only purpose.</description><pubDate>Sat, 06 Jun 2009 09:00:40 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Add BackColor/ForeColor properties to the ListView columns</title><link>http://forum.strataframe.net/FindPost23385.aspx</link><description>[quote][b]Trent L. Taylor (06/05/2009)[/b][hr]I was thinking the row, not the column.[/quote]&lt;br&gt;
I understand.  Could you elaborate why would be use the RowPopulated instead of the RowPopulating?</description><pubDate>Fri, 05 Jun 2009 13:36:27 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Add BackColor/ForeColor properties to the ListView columns</title><link>http://forum.strataframe.net/FindPost23377.aspx</link><description>I was thinking the row, not the column.  If you want to render the column, you will have to do an owner draw, which means you have to render all columns.  It isn't that hard, but it will definitely be more work than just setting a property.  This is something that will be in the future StrataListView control.  Adding this logic to the existing ListView would require an entire Owner draw...thus using the new control would be more logical.  Sorry :unsure:</description><pubDate>Fri, 05 Jun 2009 11:29:59 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Add BackColor/ForeColor properties to the ListView columns</title><link>http://forum.strataframe.net/FindPost23375.aspx</link><description>Trent,&lt;br&gt;
&lt;br&gt;
In case you missed my response above, could you please provide a quick sample code on how to change the backcolor of a column in the ListView?  I have tried different code and none worked.</description><pubDate>Fri, 05 Jun 2009 09:21:58 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Add BackColor/ForeColor properties to the ListView columns</title><link>http://forum.strataframe.net/FindPost23350.aspx</link><description>[quote][b]Trent L. Taylor (06/04/2009)[/b][hr]Are you referring to the header or the area where the text is? If you are referring to the text area, there is a new event called the RowPopulated (instead of RowPopulating) that gives you the entire column, list item ,etc. So you could actually do this.[/quote]&lt;br&gt;
Super, could you provide a quick sample code on how to change the backcolor of a column? &lt;br&gt;
&lt;br&gt;
[quote]But here is a little sneak peek of something coming down the pike. It won't be in the next release (but there may be some other goodies ;) ), but here is a StrataListView that will ultimately replace the current ListView. The StrataListView is 100% written from scratch and so there will be a lot more flexibility. But this is something fun to look forward to :D[/quote]&lt;br&gt;
That is just awesome, can't wait to get this in the framework.&lt;br&gt;</description><pubDate>Thu, 04 Jun 2009 10:24:38 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Add BackColor/ForeColor properties to the ListView columns</title><link>http://forum.strataframe.net/FindPost23349.aspx</link><description>Are you referring to the header or the area where the text is?&amp;nbsp; If you are referring to the text area, there is a new event called the RowPopulated (instead of RowPopulating) that gives you the entire column, list item ,etc.&amp;nbsp; So you could actually do this. &lt;/P&gt;&lt;P&gt;But here is a little sneak peek of something coming down the pike.&amp;nbsp; It won't be in the next release (but there may be some other goodies ;) ), but here is a StrataListView that will ultimately replace the current ListView.&amp;nbsp; The StrataListView is 100% written from scratch and so there will be a lot more flexibility.&amp;nbsp; But this is something fun to look forward to :D&lt;BR&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/90de67f2-3ee6-4249-8aab-aa60.png"&gt;&lt;/P&gt;&lt;P&gt;Notice that it will follow theme colors!&amp;nbsp; This will be in our medical app for a while before we release it...like we do most controls.&amp;nbsp; But once we work through the process it will make it into the framework.</description><pubDate>Thu, 04 Jun 2009 10:05:52 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>