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);