Andrew Rowley
Joined: 24 Dec 2005 Posts: 63
|
Posted: Sat Apr 04, 2009 3:29 am Post subject: Pinned or fixed row? |
|
|
Hi,
I would like to implement a kind of filter by example function for my data. The first row would be editable, and the user can edit it to filter what is shown in the rest of the tree.
The columns obviously need to resize and move with the data columns, so making it part of the tree seems the best way.
It seems like a good way to do it would be to bind to a filter data type, make it editable and update the data when the filter entries are changed. However the problem is how to make that row always appear as the top row rather than scroll with the rest? If I could pin a row I could make it always sort first, but I can't see how to do that.
I thought about trying to modify the ColumnHeaderWidgets to incorporate a text box, but the available cell editors make a normal row more attractive.
Can you think of any easy way to implement this? Can I override GetRowData or RowWidget or something to detect the first displayed row and show the filter row instead?
Thanks
Andrew Rowley |
|