zoukankan      html  css  js  c++  java
  • DataGridView 单击赋值

     void dataGridView1_Click(object sender, EventArgs e)
            {
                M_int_judge = 1;
                btnSave.Enabled = true;
                btnSave.BackColor = this.BackColor;
                btnDelete.Enabled = true;
                btnDelete.BackColor = this.BackColor;
                txtUserID.Text = Convert.ToString(dataGridView1[0, dataGridView1.CurrentCell.RowIndex].Value).Trim();
                txtUserName.Text = Convert.ToString(dataGridView1[1, dataGridView1.CurrentCell.RowIndex].Value).Trim();
                txtUserPwd.Text = Convert.ToString(dataGridView1[2, dataGridView1.CurrentCell.RowIndex].Value).Trim();
                cboxURight.Text = Convert.ToString(dataGridView1[3, dataGridView1.CurrentCell.RowIndex].Value).Trim();
            }
  • 相关阅读:
    内部类
    四种权限修饰符
    final关键字
    多态
    关于接口
    c语言学习
    嵌入式-文件I/O
    嵌入式-基础三-打印-粘贴
    嵌入式-基础二
    嵌入式-基础一
  • 原文地址:https://www.cnblogs.com/lqsilly/p/3225024.html
Copyright © 2011-2022 走看看