binding listview to database entity framwork
Hi I have a problem with how the binding listview to database entity
framwork And mode of listview to show details..This code only shows the
first row of the table and the records do not show
var item = (from p in db.tbl_film
select p).FirstOrDefault();
string[] items =
{item.flm_id.ToString(),item.flm_name,item.flm_description,item.flm_category
};
foreach (var itemlist in items)
{
ListViewItem lvi = new ListViewItem(items);
listView1.Items.Add(lvi);
}
No comments:
Post a Comment