Hi
I have a listview inside a tab control on windows form; i wanted to add headers to the listview;I tried to do this in constructor/ selectedindexchanged event of tab control but headers are not added
void InitListCtr() { listView1.Columns.Add("Name", 80, HorizontalAlignment.Left); listView1.Columns.Add("Type ", 80, HorizontalAlignment.Left); listView1.Columns.Add("Frequency", 65, HorizontalAlignment.Left); listView1.Columns.Add("Effective Date", 85, HorizontalAlignment.Left); listView1.Columns.Add("State ", 65, HorizontalAlignment.Left); listView1.Columns.Add("Next Run ", 65, HorizontalAlignment.Left); }the function is for sure called but the listview is not affected; I also tried to call the function from the parent window after instantiating the form that has the tab control