公告
财富商城
积分规则
提问
发文
2019-07-07 05:23发布
仙女界的扛把子
I'm using the WPF toolkit DataGrid.
How can I get the values of the cells of the selected rows?
In WPF rows represent objects in a list and columns are object's properties.
It depends on what DataGrid.ItemsSource is.If your ItemSource is an array of BindedClass you could get selected object by:
BoundClass bc = (BoundClass)dataGridControl.SelectedItem; var prop1 = bc.Prop1; var prop2 = bc.Prop2;
最多设置5个标签!
In WPF rows represent objects in a list and columns are object's properties.
It depends on what DataGrid.ItemsSource is.If your ItemSource is an array of BindedClass you could get selected object by: