Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programatically bringing a Datagrid column into view (horizontal scroll)

I would like to bring a column into view programatically. I have a lot of columns and when they are off screen i would like to select a cell and bring that cell into view, i can select a cell that is off screen and when i horizontal scroll to bring the cell visible the cell is selected.

i know you can do this with the rows, i.e ScrollIntoView but how about columns?

anyone had any luck doing this? and if so how :) (of course)

like image 712
Aran Mulholland Avatar asked Feb 28 '23 18:02

Aran Mulholland


1 Answers

Answer : use the datagrid method.

public void ScrollIntoView(object item, DataGridColumn column);

which takes a column. simple.

like image 97
Aran Mulholland Avatar answered May 01 '23 12:05

Aran Mulholland