How to get filtered items from MudDataGrid #5640
Answered
by
dev-jlb
CatalinCernea
asked this question in
Q&A
-
Hi, I'm just trying to find a way to get the filtered items after some column filters or quick filter are applied on the datagrid. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
dev-jlb
Mar 29, 2023
Replies: 1 comment 2 replies
-
The MudDataGrid has a FilteredItems property on it. You can use a @ref to assign to a variable, and then reference it from code. Razor: <MudDataGrid @ref="myGrid"> |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
CatalinCernea
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The MudDataGrid has a FilteredItems property on it. You can use a @ref to assign to a variable, and then reference it from code.
Razor: <MudDataGrid @ref="myGrid">
Code:
private static MudDataGrid myGrid;
myGrid.FilteredItems.