请帮我,我正在尝试从SelectionChangedEvent中选择的行中获取Cell[0]的值。
我只能获得许多不同的Microsoft.Windows.Controls,希望我错过了一些愚蠢的东西。
希望我能在这里得到一些帮助...
private void datagrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
Microsoft.Windows.Controls.DataGrid _DataGrid = sender as Microsoft.Windows.Controls.DataGrid;
}
我希望你能够像这样提供一些信息...
_DataGrid.SelectedCells[0].Value;
然而.Value不是一个选项....
非常感谢,这让我头疼了很久! 丹