标签:style sp strong on bs ad as new nbsp
c# ComboBox特殊属性
comboBox1.ValueMember = "Id"; 设置值 不显示的
comboBox1.DisplayMember = "Name"; 设置name 显示的
Item item=new Item();
item.Id=1;
item.Name="张三";
comboBox1.Items.Add(item);
public class Item
{
private string Id{get;set}
private string Name{get;set}
}
标签:style sp strong on bs ad as new nbsp
原文地址:http://www.cnblogs.com/zlp520/p/4125393.html