将Datagrid列编程为视图

将Datagrid列编程为视图

本文介绍了将Datagrid列编程为视图(水平滚动)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我想把一个列编入视图。我有很多列,当他们离开屏幕时,我想选择一个单元格,并将该单元格视图,我可以选择一个屏幕上的单元格,当我水平滚动,使单元格可见,单元格被选中。

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.

我知道你可以这样做,即ScrollIntoView,但是列如何?

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)

推荐答案

答案:使用datagrid方法。

Answer : use the datagrid method.

public void ScrollIntoView(object item, DataGridColumn column);

需要一列。简单。

这篇关于将Datagrid列编程为视图(水平滚动)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 14:25