Hi there is code with windowsform

datagridview.Rows[2].Cells[3] 

this value is getting and 2 lines and 3 cells. I also need but only on WPF. wpf is a datagrid but it doesn't

 Rows[2].Cells[3] 

how to organize it. planned to use to update data in the SQL database when you change them in the window

  MySqlCommand command = new MySqlCommand("update TV set model=@model,price=@price,count=@count,description=@desk where id=@id", sql); for(int i=0;i<=кол-воколонок;i++) { command.Parameters.AddWithValue("@model",Тутполучаемзначениеячейки); command.Parameters.AddWithValue("@price",Тутполучаемзначениеячейки); command.Parameters.AddWithValue("@count",Тутполучаемзначениеячейки); command.Parameters.AddWithValue("@desk",Тутполучаемзначениеячейки); command.Parameters.AddWithValue("@id",Тутполучаемзначениеячейки); } 

So the question is tell me how to get the value of cells and rows.

    0