meraj ahmad

meraj ahmad

  • NA
  • 2
  • 0

listview items into database

Aug 15 2012 4:06 AM

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)