DataGrid获取单元格的值时间:2023-03-09 16:44:53 string str = (dataGrid.Columns[0].GetCellContent(dataGrid.Items[0]) as TextBlock).Text;