發問發問
 

已答覆Differents template for different rows in a ListView

  • 2008年11月6日 下午 03:23TheSorcerer 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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.

解答

所有回覆