I have a ListView which is in grouped format.
For plain ListView:-
Public Class ShortItems
{
public string ItemName {get;set;}
public string ItemLocation {get;set;}
public string ItemDescription {get;set;}
public string ItemIcon {get;set;}
}
For grouped ListView:-
Public Class ShortItemGroup: List<ShortItems>
{
public string HeaderTitle {get;set;}
public ShortItemsGroup(string title)
{
HeaderTitle = title;
}
}
My ListView is properly displayed in grouped format. The criteria to group is location
What I am trying to do is to ungroup an already grouped ListView.
I have a button that gives the user choice about how he wants the list to be displayed, grouped, or plain.
By default the ListView style is grouped, if the user wants to change that, he can click on the button and ListView should display in plain or ungrouped format.
Any idea how can this be done?
