Add to a collection of drop-down box

= objClassService.GetClassList cboClassName.DataSource ();
cboClassName.DisplayMember = "ClassName"; // set the drop-down box text displayed
cboClassName.ValueMember = "ClassId"; // set the drop-down box text corresponding to Value

Guess you like

Origin www.cnblogs.com/GY66520/p/12129332.html