this.sfDataGrid1.FilterPopupShown += SfDataGrid1_FilterPopupShown;
private void SfDataGrid1_FilterPopupShown(object sender, Syncfusion.WinForms.DataGrid.Events.FilterPopupShownEventArgs e)
{
if (e.Column.MappingName == "OrderDate")
{
e.Control.CheckListBox.View.GroupDescriptors.Add(new GroupDescriptor()
{
PropertyName = "ActualValue",
KeySelector = (object obj1) =>
{
var item = (obj1 as FilterElement);
var dateValue = (DateTime)item.ActualValue;
return dateValue.Year.ToString();
}
});
e.Control.CheckListBox.CollapseAllGroups();
}
} |
Hi While the above solution helps,
one must untick each item indivually which is not ideal.
is this feature on a build list ?
regards
Peter
Hi Peter,
We regret to inform you that the scenario you mentioned does not apply to the
DataGrid FilterPopup. Therefore, we were unable to log the feature for the
same.
Could you please confirm how you group the filter value of
the FilterPopup in DataGrid?
Regards,
Vijayarasan S