0
votes

How can i access the selected date from datepicker column from the selected row of the wpf datagrid in code behind if i know the datagrid's selected row as

DataRowView drv = datagrid.SelectedItem as DataRowView;

where datagrid is my datagrid's name.

2
which event handler do you get yuur DataRowView from? - user572559

2 Answers

0
votes

If you bind you datagrid to data, then you can access the selected value on your data object.

0
votes

If you know the column name then you can get value using

drv["columnName"]