How do i return the column index of an item within a WPF Datagrid, when I click on a cell I'm using Visual Studio 2010/VB.Net
You can use below code directly to get selected cells column index.
int index = datagrid.SelectedCells[0].Column.DisplayIndex;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With