private void LoadMemberInfoDelFlag(int p)
 {
     MemberInfoBLL bll = new MemberInfoBLL();
     List<MemberInfo> list = bll.GetAllMemberInfoByDelFlag(p);
     list.Insert(0, new MemberInfo() { MemmberId = -1, MemName = "请选择" });
     cmbMemmber.DataSource = list;
     cmbMemmber.DisplayMember = "MemName";
     cmbMemmber.ValueMember = "MemmberId";
 }
 private void LoadMemberInfoByDelFlag(int p)
 {
     MemberInfoBLL bll = new MemberInfoBLL();
     //禁止自动生成列
     dgvMemmber.AutoGenerateColumns = false;
     dgvMemmber.DataSource = bll.GetAllMemberInfoByDelFlag(0);
     dgvMemmber.SelectedRows[0].Selected = false;
     //dataGridView1.AutoGenerateColumns = false;
     //.DataSource = bll.GetAllMemberInfoByDelFlag(0);
     //禁止默认第一行选中
     //dataGridView1.SelectedRows[0].Selected = false;
 }