.NET Framework Developer Center > .NET Development Forums > Windows Presentation Foundation (WPF) > Differents template for different rows in a ListView
Ask a questionAsk a question
 

AnswerDifferents template for different rows in a ListView

  • Monday, November 10, 2008 8:25 AMTheSorcerer Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    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 )

    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.

    Any help?

    Thanks.

Answers

All Replies