How to get the Column index or Column.DisplayIndex from its Column Header in WPF DataGrid?
Column
Column.DisplayIndex
Column Header
WPF
DataGrid
I know th
Look like "paul" have an small error. Here is my code:
var index = dataGrid.Columns.Single(c => c.Header.ToString() == "HeaderName").DisplayIndex;