protected void ASPxPivotGrid1_CustomCallback(object sender, PivotGridCustomCallbackEventArgs e) { if (String.IsNullOrEmpty(e.Parameters)) { return; } String[] args = e.Parameters.Split('|'); if (args[0] == "MenuItemClick") { switch (args[1]) { case "Filter": PivotGridField field = ASPxPivotGrid1.Fields[args[2]]; int itemIndex = Int32.Parse(args[3]); Object filterValue = ASPxPivotGrid1.GetFieldValueByIndex(field, itemIndex); field.FilterValues.ValuesIncluded = new Object[] { filterValue }; break; } } }