1
Answer

listview items into database

meraj ahmad

meraj ahmad

12y
1.5k
1

How to insert listview items in database?  My  code :


// create the subitems to add to the list
string[] myItems = new string[]
{

dtpinvoicedate.Text,
txtinvoiceno.Text.Trim().ToString(),
cmbBV.Text,
cmbCustName.Text,
txtCustAddress.Text,
txtInvDescr.Text,
txtCustPO.Text,
txtDescr.Text,

txtQty.Text,
txtRate.Text,
txtTotal.Text,


};
ListViewItem lvi = new ListViewItem(myItems);

// insert all the items into the listview at the last available row
  listView1.Items.Add(lvi);





Answers (1)