ColumnName in DataGridColumn

Aug 27, 2009 at 5:24 AM


I have just began using the DataGrid from the WPFToolKit which I find really useful.

But, I have a question that I have searched for a solution, but not found any. Probarbly a trivial question. =)

I have a DataGrid that has autogenerated columns. How can I retrieve the ColumnName bound to a Column codebehind? I can't find any property that tells me this. The only solution I have for how is to use the SortMemberPath, but if the column is not sortable this field isn't set :(

Does anyone have any suggestions?