Differents template for different rows in a ListViewHi,<br><br>I have a listview that shows a list of elements of two types, files and folders. This listview has 4 columns ( Name, Data, Size and Icon ). For files, all columns has sense but not for folders ( they only have Name field ). So I would like to use a different template for folders ( like a RowSpan for 4 columns o something like this )<br><br>My ideas started using a ListBox instead of a ListView but, I loose column resizing. I'm thinking in it but I have no idea.<br><br>Any help?<br><br>Thanks.<br> © 2009 Microsoft Corporation. All rights reserved.Fri, 14 Nov 2008 17:38:59 Z1311b66f-64e3-4793-b6ee-876bd45e2688http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/1311b66f-64e3-4793-b6ee-876bd45e2688#1311b66f-64e3-4793-b6ee-876bd45e2688http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/1311b66f-64e3-4793-b6ee-876bd45e2688#1311b66f-64e3-4793-b6ee-876bd45e2688TheSorcererhttp://social.msdn.microsoft.com/Profile/en-US/?user=TheSorcererDifferents template for different rows in a ListViewHi,<br><br>I have a listview that shows a list of elements of two types, files and folders. This listview has 4 columns ( Name, Data, Size and Icon ). For files, all columns has sense but not for folders ( they only have Name field ). So I would like to use a different template for folders ( like a RowSpan for 4 columns o something like this )<br><br>My ideas started using a ListBox instead of a ListView but, I loose column resizing. I'm thinking in it but I have no idea.<br><br>Any help?<br><br>Thanks.<br> Thu, 06 Nov 2008 15:23:55 Z2008-11-06T15:23:55Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/1311b66f-64e3-4793-b6ee-876bd45e2688#f3a9e8f6-69f2-43c2-947f-bf261e284273http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/1311b66f-64e3-4793-b6ee-876bd45e2688#f3a9e8f6-69f2-43c2-947f-bf261e284273TheSorcererhttp://social.msdn.microsoft.com/Profile/en-US/?user=TheSorcererDifferents template for different rows in a ListViewSolved here. <br><br><a href="http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/c692d8b6-ab6e-43a3-9302-8942254d7c4b">http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/c692d8b6-ab6e-43a3-9302-8942254d7c4b</a><br><br>I post in a wrong forum. Sorry Fri, 14 Nov 2008 17:38:57 Z2008-11-14T17:38:57Z