You have a listbox where you need to deal with multiple items selected. I guess this should be very easy, but still it's worth to write about it.
Parameter p;
for (int i = 0; i < listbox.Items.Count; i++)
{
if (listbox.Items[i].Selected)
{
p = new Parameter("param", TypeCode.String, listbox.Items[i].Value);
myDS.InsertParameters.Add(p);
myDS.Insert();
myDS.InsertParameters.Remove(p);
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment