Hi,
Is Pinning and Filtering possible in XAMDATAGRID.Can any one give examples with sample code in it.Please guys help me in this
Thanks In Advance
I know pinning is not available yet with the XamDataGrid. I'm REALLY hoping it's available in the next release as well as a functional AutoFit. In the meantime, we hacked a column pinning solution where we divided up the data into 2 XamDataGrids, and manipulated ScrollViewers, as well as selection click events to keep the rows in sync with each other.
We'll need row pinning eventually too, so we figure we'll use the same logic of 2 XamDataGrids one for the pinned items and one grid directly below it for the free flowing items.
As for filtering, we accomplished that by redefining the data source, after programatically determining the filtered items. Our filtering requirements were a little too specific for any grid filtering to be useful, so we went that route instead.
Can you post the sample code it would be very helpful
Any ideas when the xamDataGrid will have row and column pinning? I currently use the UltraWinGrid and our customers love this feature. I won't be able to port to WPF without it unless I implement this myself.
We wrote our column pinning work around for a client, so it won't be possible to post any sample code.
For our solution we needed to pin only one column (basically an identifier for each row) and have the rest of the columns free form. We used one grid to hold the pinned column, and a second grid to the right that had the free form columns. Both grids used the same datatable, but the left grid collapsed all columns except for the pinned column, and the right grid collapsed just the pinned column. From there we hid all the scrollviewers in the left grid and tracked the events on the scrollviewer on the right grid. Each time the right grid moved we updated the position on the left grid. Of course there were problems we had to work out for items like column sorting, and row selection, but we managed to syncronizes the 2 grids. Like I said before this is just a work around solution until column pinning is implemented.
Infragistics please add Column and Row pinning soon, so we won't have to implement more weird work arounds!