I'm trying to figure out if its possible to use the Datagrid custom filter with a function that is part of an object.
So I have an object that has a list as part of the object and want to be able to filter where any item in this list contains some text, similar to:
public myclass{
text value1;
List listObjects;
....
}
I've created a function, that is part of the main object being displayed in the grid, called checkForText(string text) and it returns a bool. Looks a bit like:
checkForText(string value) => listObjects.Where(x => x.value.contains(string).Any ? true : false;
When I try creating a whereexpression of "checkForText({string}) eq true" or without the "eq true" at the end, it doesn't seem to filter anything. Is this possible currently using the custom filtering in the Datagrid?