示例#1
0
 /// <summary>
 /// 数据类型控件初始化数据
 /// </summary>
 private void LoadTypeList()
 {
     ddlType.DataSource    = mtBll.Getlist(); //combox绑定会员类型数据
     ddlType.DisplayMember = "MTitle";        //显示会员类型名称
     ddlType.ValueMember   = "MId";           //保存Id值
 }
示例#2
0
 /// <summary>
 /// 读取数据
 /// </summary>
 private void LoadList()
 {
     dgvMemberType.AutoGenerateColumns = false;
     dgvMemberType.DataSource          = mtBll.Getlist();
 }