Hi Orlando Villarreal,
We have created a sample based on your requirement. Please refer to the attached sample and code snippets for your reference.
Code Snippets:
private void SfListView1_SelectionChanging(object sender, ItemSelectionChangingEventArgs e)
{
if (selectedGroupKey != null)
{
foreach (var item in e.AddedItems)
{
if (item.ToString().Contains(selectedGroupKey))
{
e.Cancel = true;
break;
}
}
}
}
Regards,
Bagavathi Perumal A
Attachment:
SfListiew_WinForms_42ee87df.zip