WPF DataGrid ScrollBar Issue

今天又使用WPF 的DataGrid,发现了一个稍微隐蔽的问题。

 

 

http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/5cc4f719-8b16-440b-ada9-657564f0097b/

In my try. Datagrid's parent container and super-parent containers must be Grid. If any one of his ancestors is a container which is Canvas or StackPanel, You will see the curious phenomena.

 

翻译一下:

DataGrid的父容器以及祖先容器,绝对不能是StackPanel或者Cavas,否则,DataGrid的滚动条功能绝对不能如愿显示。

 

因此,我想到写一个小程序,检查DataGrid的承载关系,是否有问题。

posted @ 2010-08-11 16:41  任国强  阅读(1476)  评论(1编辑  收藏  举报