void RowReadOnlyCheckBox_CheckChanged (object sender, EventArgs e) { _dataGrid.Rows [1].ReadOnly = _rowReadOnlyCheckBox.Checked; }