Get the Grid data in ColumnHeaderClick

Posted by plotnick on Stack Overflow See other posts from Stack Overflow or by plotnick
Published on 2010-03-29T16:22:17Z Indexed on 2010/03/29 16:43 UTC
Read the original article Hit count: 269

Filed under:
|

Sorrry guys, I'm stuck here.

I have a few grids, I also have CollectionViewSource objects associated with those grids.

Now, I'm trying to apply CollectionViewSource.SortDescriptions in ColumnHeaderClick method, and now I have to define almost the same method for each grid.

But the only thing I really need is to obtain in which Grid is happenning.

How to get that, I have no idea. Help me please.

VisualTreeHelper.GetParent didn't work.

© Stack Overflow or respective owner

Related posts about gridview

Related posts about wpf