Silverlight DataGrid how to get cell value from a selected item?

后端 未结 4 2027
孤街浪徒
孤街浪徒 2021-01-13 23:50

I am trying to get a cell value from the selected item of a silverlight datagrid. In the attached code I can get to the properties of the cell and change its forecolor, but

4条回答
  •  青春惊慌失措
    2021-01-14 00:45

    Have you tried something like this pseudo:

    string myString = ((MyNamespace.MyEntity)(myDataGrid.SelectedItem)).myStringProperty;
    

提交回复
热议问题