WPF Datagrid Get Selected Item

Posted by wonea on Stack Overflow See other posts from Stack Overflow or by wonea
Published on 2010-04-27T14:51:05Z Indexed on 2010/04/27 14:53 UTC
Read the original article Hit count: 385

Filed under:
|
|

Hello,

How do I get the selected item in a WPF datagrid? Tried the following, with no luck;

dataGrid1.CurrentCell.Item.ToString();
string[] strsplit = dataGrid1.SelectedValue.ToString().Split('+');
dataGrid1.SelectedCells[0].Item.ToString();
dataGrid1.CurrentItem.ToString();

dataGrid1.CurrentCell.Item.ToString();
dataGrid1.CurrentCell.Item.ToString();

Thanks

© Stack Overflow or respective owner

Related posts about wpf

Related posts about datagrid