﻿<?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 » WinForms (How do I?)  » StrataListView questions...</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 10 Sep 2026 14:18:43 GMT</lastBuildDate><ttl>20</ttl><item><title>StrataListView questions...</title><link>http://forum.strataframe.net/FindPost28144.aspx</link><description>How to prevent any column from being sortable?&lt;br&gt;
&lt;br&gt;
ex: In my listviews the first columns is for an image, I don't want this column to do any sorting.</description><pubDate>Mon, 20 Sep 2010 20:54:17 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: StrataListView questions...</title><link>http://forum.strataframe.net/FindPost28451.aspx</link><description>Hi Ivan,&lt;br/&gt;&lt;br/&gt;Glad to see we are in the same page &lt;span&gt;:hehe:&lt;/span&gt;</description><pubDate>Mon, 20 Sep 2010 20:54:17 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: StrataListView questions...</title><link>http://forum.strataframe.net/FindPost28450.aspx</link><description>Hi Edhy.&lt;br/&gt;&lt;br/&gt;That is a good question. :D&lt;br/&gt;&lt;br/&gt;I tried to find out over here but didn't get to a good result yet, gues I will need some help from the guys. </description><pubDate>Mon, 20 Sep 2010 20:27:22 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: StrataListView questions...</title><link>http://forum.strataframe.net/FindPost28445.aspx</link><description>Thanks Ivan.&lt;br/&gt;&lt;br/&gt;I tried that but could not find a way to get the Index of the item, since in my sample the StrataListViewItem does not have an Index property exposed.&lt;br/&gt;&lt;br/&gt;How can we get the index of the item to be removed?</description><pubDate>Mon, 20 Sep 2010 10:54:16 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: StrataListView questions...</title><link>http://forum.strataframe.net/FindPost28444.aspx</link><description>In that case, have you tried the following?&lt;br/&gt;&lt;br/&gt;[codesnippet]yourListViewControl.Items.RemoveAt(yourItemIndex)[/codesnippet]</description><pubDate>Mon, 20 Sep 2010 10:12:34 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: StrataListView questions...</title><link>http://forum.strataframe.net/FindPost28443.aspx</link><description>Hi Ivan,&lt;br/&gt;&lt;br/&gt;Sorry, but the question is &lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl02_lblFullMessage"&gt;how to &lt;span style="font-weight: bold;"&gt;remove an item from the StrataListView?&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;[quote]&lt;/span&gt;&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl02_lblFullMessage"&gt;According to this, the columns will be represented by the subitems, have you tried item.subitems.remove ?&lt;/span&gt;&lt;span&gt;[/quote]&lt;/span&gt;&lt;br/&gt;&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl02_lblFullMessage"&gt;&lt;br/&gt;Yes, I tried, but I am stock on this one.&amp;nbsp; Probably Trent can give us a hint on how to remove an item from the StrataListView.&lt;br/&gt;&lt;br/&gt;P.S.&lt;br/&gt;I am replacing most of my current listview with this one and I am totally amazed with the speed and extended functionality of this control.&lt;br/&gt;&lt;/span&gt;</description><pubDate>Mon, 20 Sep 2010 09:22:40 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: StrataListView questions...</title><link>http://forum.strataframe.net/FindPost28440.aspx</link><description>Hi Edhy.&lt;br/&gt;&lt;br/&gt;Have a look at the StrataListView sample:&lt;br/&gt;&lt;br/&gt;[codesnippet]'-- Cycle through all of the items&lt;br/&gt;For Each bo As CustomersBO In Customers.GetEnumerable()&lt;br/&gt;&amp;nbsp;'-- Create a new item. The item is actually the first column as well.&amp;nbsp; In this case, we do not want&lt;br/&gt;&amp;nbsp;'&amp;nbsp;&amp;nbsp; to show anything other than an icon.&amp;nbsp; In this example, they will all be the same and user the key "User"&lt;br/&gt;&amp;nbsp;item = New StrataListViewItem(String.Empty, "User")&lt;br/&gt;&lt;br/&gt;&amp;nbsp;'-- Create the sub items.&amp;nbsp; A sub-item is ultimately nothing more than a column.&lt;br/&gt;&amp;nbsp;item.SubItems.Add(String.Format("{0}, {1}", bo.cust_LastName, bo.cust_FirstName), MicroFour.StrataFrame.UI.Rendering.Enums.StrataEmbeddedControlType.Link)&lt;br/&gt;&amp;nbsp;item.SubItems.Add(String.Format("{0}, {1}, {2}&amp;nbsp; {3}", bo.cust_Address1, bo.cust_City, bo.cust_State, bo.cust_Postal), String.Empty)&lt;br/&gt;&lt;br/&gt;&amp;nbsp;'-- Create a custom data item that stores the primary key of this record&lt;br/&gt;&amp;nbsp;item.CustomData.Add("PrimaryKey", bo.cust_pk)&lt;br/&gt;&lt;br/&gt;&amp;nbsp;'-- Add the item to the list&lt;br/&gt;&amp;nbsp;lstLink.Items.Add(item)&lt;br/&gt;Next[/codesnippet]&lt;br/&gt;&lt;br/&gt;According to this, the columns will be represented by the subitems, have you tried item.subitems.remove ?</description><pubDate>Mon, 20 Sep 2010 08:32:19 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: StrataListView questions...</title><link>http://forum.strataframe.net/FindPost28432.aspx</link><description>How to remove an item from the StrataListView?&lt;br/&gt;&lt;br/&gt;In the old listview I could do something like this:&lt;br/&gt;&lt;span&gt;[quote]&lt;br/&gt;For Each listItem as ListViewItem in MyListView.Items&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listItem.Remove()&lt;br/&gt;Next&lt;br/&gt;[/quote]&lt;br/&gt;&lt;br/&gt;The new StrataListViewItem does not have a Remove() method, how can I do this?&lt;br/&gt;&lt;/span&gt;</description><pubDate>Sun, 19 Sep 2010 18:48:48 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: StrataListView questions...</title><link>http://forum.strataframe.net/FindPost28219.aspx</link><description>Thanks Greg, will explore the alternative.  Good idea! :cool:</description><pubDate>Tue, 31 Aug 2010 19:59:38 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: StrataListView questions...</title><link>http://forum.strataframe.net/FindPost28217.aspx</link><description>Edhy, there is no way to turn off sorting for a single column (that will change very soon...an IsSortable property has been added to columns and has already been coded in fact and should be in next build).&lt;br&gt;
&lt;br&gt;
However, there might be an alternative. You could put a logical value in the SortValue property of the image column. If the image represents individual items, you could put the PK in it. If it represents a category, put the category in the SortValue, etc.</description><pubDate>Tue, 31 Aug 2010 18:01:44 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: StrataListView questions...</title><link>http://forum.strataframe.net/FindPost28214.aspx</link><description>There doesn't appear to be. I'm checking with Trent/Dustin in case I missed something.</description><pubDate>Tue, 31 Aug 2010 13:03:30 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: StrataListView questions...</title><link>http://forum.strataframe.net/FindPost28213.aspx</link><description>Hi guys, any idea on how to do this?</description><pubDate>Tue, 31 Aug 2010 12:45:42 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>