Hello, I have the following code at the bottom which should load data automatically into the RadListView at form load. However, the text is not visible in the RadListView. I can see the exact number of rows being returned from the SQL database into the RadListView. why is the text not visible?
Thank you for your help in advance! :)
private void MemberUC_Load(object sender, EventArgs e)
{
//fill main panel
this.Dock = DockStyle.Fill;
using (SqlConnection con = new SqlConnection(*connection string string goes here*))
{
con.Open();
cmd = new SqlCommand("SELECT FirstName, MiddleName, LastName, MemberType FROM dbo.MemberInformation");
cmd.Connection = con;
dr = cmd.ExecuteReader();
while (dr.Read())
{
ListViewItem item = new ListViewItem();
item.SubItems.Add(dr["FirstName"].ToString());
item.SubItems.Add(dr["MiddleName"].ToString());
item.SubItems.Add(dr["LastName"].ToString());
item.SubItems.Add(dr["MemberType"].ToString());
memberDetailsLV.Items.Add(item);
}
}
}