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);
Sukesh MarlaPosted Aug 15, 2012, 3:36 PM
Download dll from above URLa
simply loop through the Listview and just use the insert query..
There is a help file attached with dll,
Hope it helped, Check this is correct answer if it is,