110,534
社区成员
发帖
与我相关
我的任务
分享
listBox1.DataSource = ds.Tables["EDept"].DefaultView;
listBox1.ValueMember = "Dept";
listBox1.DisplayMember = "CreatedBy";
listBox1.SelectedIndex = -1;
string str = listBox1.SelectedItem.ToString();
string str = listBox1.Text;
string str = listBox1.SelectedValue.ToString();
listBox1.Items.Add("aaaa");
listBox1.Items.Add("bbbb");
listBox1.Items.Add("cccc");
listBox1.Items.Add("eeee");
listBox1.Items.Add("ffff");