c# - How to implement a customized sortable and expandable list in WPF -
i need implement list customized below. should able sort items on given field clicking on header. line should expandable. when user clicks on +, line should expand , disclose more information under field2 value.
i have tried use listview in gridview. each column, have defined template (a template field1 values + on left, 1 field 2 values , 1 field 3 values). implementation, problem "how expand 1 line".
i looked @ listbox component, need create headers manually , align content. need sort manually. doesn't seem solution me.
do have better idea, or advice?
the correct base control appears datagrid
. provide functionality sorting on headers, etc.
you have modify controltemplate
through style if want in screenshot.
as inspiration how ge detail expansion, following article you:
you can consider having @ third party datagrids, in case standard datagrid doesn't cover of needs, individual templating can pretty far.
Comments
Post a Comment