Skip to content

TableView - RowFilter #2377

Answered by tznind
aaronhudon asked this question in Q&A
Feb 22, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

RowFilter is part of DefaultView which is not used by TableView. However you can generate a new table from the view (see code below for example). If you have a very large table though you may not want to do this on every keystroke. If you apply this filter using background threads or async make sure to update the table using Application.MainLoop.Invoke to prevent changing the table during drawing. Also when you activate or right click etc the cells in the filtered table then the indexes will refer to what is currently displayed (not your original table e.g. dt).

Also you will want some try/catch logic when setting RowFilter because it gives exceptions on bad syntax which would go badly fo…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aaronhudon
Comment options

@tznind
Comment options

Answer selected by aaronhudon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants