Grouping the items by ignoring case sensitive by using the KeySelector property in the GroupDescriptor. While returning the KeySelector
, convert the required property name in the data model to group either as Upper or Lower case. The items will be grouped based on the KeySelector
with returned case sensitive.
listView.DataSource.GroupDescriptors.Add(new GroupDescriptor()
{
PropertyName = "ContactName",
KeySelector = (object obj) =>
{
return (obj as Contacts).ContactName.ToUpper()[0];
}
});
To know more about grouping ListView, please refer our documentation here