Twoway binding datagrid wpf xaml
问题 I want to bind CLR property into datagrid Row How to Bind row binding in datagrid(Twoway Mode) CodeBehind: public partial class TechnicalPropertiesU_Var : Window { public TechnicalPropertiesU_Var() { InitializeComponent(); List<Myclass> myclassList = new List<Myclass>(); myclassList.Add(new Myclass() { IA = 0, IB = 0, IC = 0, ID = 0, IE = 0, IF = 0, IF = 0 }); MyGrid.ItemsSource = myclassList; } } MyWindow Xaml: <Grid> <DataGrid x:Name="MyGrid" AutoGenerateColumns="False"> <DataGrid.Columns>