I have a DataGrid and a string[][] dataSource array as a source data for this DataGrid. I use following code to set binding:
dataGrid.ItemsSource = dataSource;
for (int i = 0; i < columns; i++)
{
dataGrid.Columns.Add(new DataGridTextColumn
{
Binding = new Binding(string.Format("[{0}]", i))
});
}
How can I update an information in a cell of DataGrid when value in string[i][j] was changed?