标签:value display slist obj etc 设置 source 显示 play
cboClassName.DataSource = objClassService.GetClassList();
cboClassName.DisplayMember = "ClassName";//设置下拉框显示的文本
cboClassName.ValueMember = "ClassId";//设置下拉框显示文本对应的Value
标签:value display slist obj etc 设置 source 显示 play
原文地址:https://www.cnblogs.com/GY66520/p/12129332.html