WPF, datagrid програмно изменить значение ячейки

У меня есть datagrid:

<DataGrid    Name="dataGrid1">  
    <DataGrid.Columns>
        <DataGridTextColumn CellStyle="{StaticResource NameCellStyle}"    Header="Канал"  Width="0.6*"   IsReadOnly="True" Binding="{Binding Path=Channel}">
            <DataGridTextColumn.ElementStyle>
                <Style>
                    <Setter Property="TextBlock.VerticalAlignment" Value="Center" />

                </Style>
            </DataGridTextColumn.ElementStyle>
        </DataGridTextColumn>
        
        <DataGridTextColumn  CellStyle="{StaticResource NameCellStyle}" Width="0.4*" Header="Статус"  IsReadOnly="True"  Binding="{Binding Path=Status}">
            <DataGridTextColumn.ElementStyle>
                <Style>
                    <Setter Property="TextBlock.VerticalAlignment" Value="Center" />
                </Style>
            </DataGridTextColumn.ElementStyle>
        </DataGridTextColumn>
        
    </DataGrid.Columns>
</DataGrid>

Заполнение:

dataGrid1.Items.Add(new TaskTable()
{
    Channel = "text",
    Status = @"Работает",
});

Как изменить определенную ячейку в строке X столбцу Y?


Ответы (0 шт):