■
CONTENTS
xviii
Creating a View Declaratively ................................................................................................. 695
Filtering, Sorting, and Grouping .................................................................................................. 697
Filtering Collections ................................................................................................................ 697
Filtering the DataTable ........................................................................................................... 701
Sorting ................................................................................................................................... 702
Grouping ................................................................................................................................ 703
The Last Word ............................................................................................................................ 707
■Chapter 22: Lists, Grids, and Trees ................................................................................................ 709
The ListView .............................................................................................................................. 710
Creating Columns with the GridView ...................................................................................... 711
Creating a Custom View ......................................................................................................... 715
The TreeView ............................................................................................................................. 724
A Data-Bound TreeView ......................................................................................................... 724
Binding a DataSet to a TreeView ............................................................................................ 728
Just-in-Time Node Creation ................................................................................................... 729
The DataGrid .............................................................................................................................. 732
Resizing and Rearranging Columns ........................................................................................ 734
Defining Columns ................................................................................................................... 735
Formatting and Styling Columns ............................................................................................. 740
Formatting Rows .................................................................................................................... 742
Row Details ............................................................................................................................ 744
Freezing Columns .................................................................................................................. 745
Selection ................................................................................................................................ 745
Sorting ................................................................................................................................... 746
DataGrid Editing ..................................................................................................................... 746
The Last Word ............................................................................................................................ 749
■Chapter 23: Windows ..................................................................................................................... 751
The Window Class ...................................................................................................................... 751
Showing a Window ................................................................................................................ 754
Positioning a Window ............................................................................................................. 755
Saving and Restoring Window Location .................................................................................. 756
Window Interaction .................................................................................................................... 758