eureka18
04-18-2011, 03:06 AM
Hello Everyone,
I am trying to follow the tutorial below.
http://www.vbdotnetheaven.com/Upload...ewControl.aspx (http://www.vbdotnetheaven.com/Uploadfile/mahesh/MultiColumnListViewControl04252005023924AM/MultiColumnListViewControl.aspx)
However, when I come to the point to add multiple columns. I get stuck..
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Adding ListView Columns
ListView1.Columns.Add("Emp Name", 100, HorizontalAlignment.Left)
ListView1.Columns.Add("Emp Address", 150, HorizontalAlignment.Left)ListView1.Columns.Add("Title", 60, HorizontalAlignment.Left)
ListView1.Columns.Add("Salary", 50, HorizontalAlignment.Left)ListView1.Columns.Add("Department", 60, HorizontalAlignment.Left)
End Sub
What is wrong with the code? Can anybody help me please?
I am trying to follow the tutorial below.
http://www.vbdotnetheaven.com/Upload...ewControl.aspx (http://www.vbdotnetheaven.com/Uploadfile/mahesh/MultiColumnListViewControl04252005023924AM/MultiColumnListViewControl.aspx)
However, when I come to the point to add multiple columns. I get stuck..
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Adding ListView Columns
ListView1.Columns.Add("Emp Name", 100, HorizontalAlignment.Left)
ListView1.Columns.Add("Emp Address", 150, HorizontalAlignment.Left)ListView1.Columns.Add("Title", 60, HorizontalAlignment.Left)
ListView1.Columns.Add("Salary", 50, HorizontalAlignment.Left)ListView1.Columns.Add("Department", 60, HorizontalAlignment.Left)
End Sub
What is wrong with the code? Can anybody help me please?