Is there any way to programmatically find out the order position of a particular column?
In the debugger, I noticed that grid.ActiveCell.Field.GridPosition.Column contains exactly what I need, but this property is internal...
Thanks in advance,Michael
Hi!!
Can I change the position of a column using xaml?? Is there any property to do it??
Hi Alex,
I switched to 9.1 and got ActualPosition. It works as expected, so I am all set.
Thanks a lot!
Michael
Hello Michael,
In v 9.1 the field exposes an ActualPosition property which you can use to find the position in the XamDataGrid. In previous versions it is not so easy to find this position.
If you are using other than 9.1, you can try using DataPresenterCommands such as CellNext, CellFirstDisplayed to move through the cells (changing the ActiveCell) and perform a check for its name and find out its position.
Hope this helps,Alex.