Replies: 1 comment 1 reply
-
I have thought about this before and agree sorting support should be added.
But it needs to be optional as sorting very large tables can break
performance.
I think a good approach would be to add
SupportsSorting and Sort methods to ITableSource. Then TableView can
handle the UI bits (clicks and sort indicators)
Will have a look and implement a good solution.
…On Sat, 20 May 2023, 10:34 Tig, ***@***.***> wrote:
I sorta assumed TableView had built-in support for clicking on a header
and having the table sort. Then I looked at TableEditor and saw it isn't
so easy.
If I want to use
jumpList.Table = new EnumerableTableSource<UnicodeRange> (UnicodeRange.Ranges, new Dictionary<string, Func<UnicodeRange, object>> () {
{ "Category", (s) => s.Category },
{ "Range", (s) => ($"(U+{s.Start:x5}-{s.End:x5})") },
});
Is it possible/easy to enable changing which column the table is sorted by?
Tag @tznind <https://github.com/tznind>
—
Reply to this email directly, view it on GitHub
<#2645>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHO3C5GHDREDOJTP3QG7JYLXHCFYVANCNFSM6AAAAAAYIUCASY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I sorta assumed
TableView
had built-in support for clicking on a header and having the table sort. Then I looked atTableEditor
and saw it isn't so easy.If I want to use
Is it possible/easy to enable changing which column the table is sorted by?
Tag @tznind
Beta Was this translation helpful? Give feedback.
All reactions