コード例 #1
0
 //重置
 private void button5_Click(object sender, EventArgs e)
 {
     //填充数据
     dgvUser.DataSource = AdminManage.GetUserByAdmin();
     //输入框清空
     tboxXh.Text     = "";
     tboxName.Text   = "";
     tboxPwd.Text    = "";
     cboxGender.Text = "";
     tboxTel.Text    = "";
     tboxCorID.Text  = "";
     //查找框清空
     tboxFind.Text = "";
 }
コード例 #2
0
 private void FrmAdminUser_Load(object sender, EventArgs e)
 {
     dgvUser.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
     //填充数据
     dgvUser.DataSource = AdminManage.GetUserByAdmin();
 }