grid_center.ColumnDefinitions[3].Width.Value = 0; <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Name="grid_center"> <Grid.RowDefinitions> <RowDefinition/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="200"/> <ColumnDefinition/> //изменить размер этого столбца <ColumnDefinition Width="200" Name="grig_col_200"/> </Grid.ColumnDefinitions> 
  • What's the problem? You have written the first line. - VladD
  • Only the index is probably wrong, you need 2, the numbering is from 0. - VladD
  • cannot be assigned - read-only access - codename0082016

1 answer 1

Try

 grid_center.ColumnDefinitions[2].Width = new GridLength(0); 

or simply

 grig_col_200.Width = new GridLength(0);