Acess to a DataGrid through C# code and manipulate data inside the DataGrid
问题 My DataGrid XAML code 1- I want to be able to add new rows and acess to data of one column of the DataGrid, i've tried using the Name prop but it doesn't work... 2- After that, to add a new row i just have to call the Add method of dataGrid.Items ? What do i feed that method with? Create a class with proprieties representing the columns like answered here ? 3- I have a column named "Nota", how do i acess to the data of that column in every row? Thanks in advance, -A 回答1: 1. You cannot access