CodingIsFun
Programmer
Hi all experts,
When I try to view this in Detail View its blank with no header and data. When viewed in list view it shows all my items. Is there a setting that I am forgetting to set, when this is in detail view
I have populated the listview(lstProducts) with the following code:
SqlDataReader dr = test.return_data_reader("usp_get_products_by_id", parameters, "products");
lstProducts.Clear();
lstProducts.View = View.Details;
if (dr.HasRows)
{
while (dr.Read())
{
ListViewItem item = new ListViewItem(dr["product_name"].ToString());
item.SubItems[0].Text = dr["dependent_product_id"].ToString();
lstProducts.Items.Add(item);
}
}
dr.Close();
Thanks in advance..
When I try to view this in Detail View its blank with no header and data. When viewed in list view it shows all my items. Is there a setting that I am forgetting to set, when this is in detail view
I have populated the listview(lstProducts) with the following code:
SqlDataReader dr = test.return_data_reader("usp_get_products_by_id", parameters, "products");
lstProducts.Clear();
lstProducts.View = View.Details;
if (dr.HasRows)
{
while (dr.Read())
{
ListViewItem item = new ListViewItem(dr["product_name"].ToString());
item.SubItems[0].Text = dr["dependent_product_id"].ToString();
lstProducts.Items.Add(item);
}
}
dr.Close();
Thanks in advance..