zoukankan      html  css  js  c++  java
  • XtrGrid 禁用特定单元格

    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;
    }

    E-MAIL:yiwuya@hotmail.com
    MSN:yiwuya@hotmail.com
    QQ:304899972
    纺织软件
  • 相关阅读:
    Linux
    CUDA开发
    Linux C++
    Python
    C++
    模式识别
    Linux
    算法
    算法
    leetcode 数组,链表,跳表
  • 原文地址:https://www.cnblogs.com/yiwuya/p/3018981.html
Copyright © 2011-2022 走看看