using DevExpress.XtraGrid.Views.Grid;
// ...
private void gridView1_ShowingEditor(object sender, System.ComponentModel.CancelEventArgs e) {
GridView View = sender as GridView;
string cellValue = View.GetRowCellValue(gridView1.FocusedRowHandle, colCountry).ToString();
if (cellValue == "Germany")
e.Cancel = true;
}
![](https://img2024.cnblogs.com/blog/35695/202408/35695-20240826070647288-243310440.jpg)