WPF之DataGrid

1.在XAML中设置DataGrid的ItemsSource={Binding}

2.codebehind中通过dataGrid.DataContext = list来设置DataContext。

posted @ 2014-10-10 10:23  talentzemin  阅读(132)  评论(0编辑  收藏  举报