110,535
社区成员
发帖
与我相关
我的任务
分享
string fldel = listBox1.SelectedValue.ToString();
int delFl = Convert.ToInt32(listBox1.SelectedValue.ToString());
htDataSet.FlRow delFlRow;
delFlRow = htDataSet1.Fl.FindByFlID(delFl);
delFlRow.Delete();
this.flTableAdapter.Update(this.htDataSet1.Fl);
private string[] str = new string[] { "A,B,C", "D,E", "F,G","H,I,J" };
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
listBox2.Items.Clear();
int t = listBox1.SelectedIndex;
string[] s = str[t].Split(',');
foreach (string p in s)
{
listBox2.Items.Add(p);
}
}