zoukankan      html  css  js  c++  java
  • DEV控件的分页控件,实现勾选复选框

             /// <summary>
            /// 单元格的点击事件
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void gViewActPara_MouseDown(object sender, MouseEventArgs e)
            {
                GridHitInfo hint = DwgdClient.gridView1.CalcHitInfo(e.X, e.Y); //获取单元格的坐标
                if (hint != null)
                {
                    if (hint.InRowCell)    //选择非空白处
                    {
                        if (hint.Column.FieldName == "Status")   //判断选择的单元格是不是复选框
                        {
                            int rowHandle = hint.RowHandle;     //选择行的索引         
    
                            string name = this.DwgdClient.gridView1.GetRowCellValue(rowHandle, "Status").ToString();    //获取复选框的值
    
                            if (name == "True")  //已选中,则设置为不选中
                            {
                                DwgdClient.gridView1.SetRowCellValue(rowHandle, "Status", false);
    
                            }
                            else if (name == "False")
                            {
                                DwgdClient.gridView1.SetRowCellValue(rowHandle, "Status", true);
                            }
    
                        }
                    }
                }
            }
  • 相关阅读:
    python学习之模块补充二
    MySQL的表关系
    初识数据库
    MySQL基础
    死锁 递归锁 信号量 Event事件 线程q
    进程池/线程池与协程
    线程
    进程相关知识点
    python 之多进程
    socket 基础
  • 原文地址:https://www.cnblogs.com/leaflife/p/7472358.html
Copyright © 2011-2022 走看看