private void LvBuilds_SelectedIndexChanged(object sender, EventArgs e) { lvDlls.Items.Clear(); string entryDate = ""; ListView.SelectedListViewItemCollection build = this.lvBuilds.SelectedItems; foreach (ListViewItem item in build) { entryDate = item.SubItems[2].Text; } dlls = SqliteDataAccess.LoadDlls(SqliteDataAccess.GetParentId(entryDate)); if (dlls == null) { return; } foreach (var dll in dlls) { ListViewItem item1 = new ListViewItem(dll.Name); item1.SubItems.Add(dll.Type); lvDlls.Items.Add(item1); } return; }