WyattM 0 Newbie Poster

In VB.Net 2005 I am wanting to be able to add to a list with columns and rows but everytime I try to add something it only goes into first column and down. Can someone please help me. I am getting pretty agrivated.

Public Class Form1

Private Sub BtnReset_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnReset.Click
TxtBxID.Text = ""
TxtBxFirstName.Text = ""
TxtBxMiddleName.Text = ""
TxtBxLastName.Text = ""
TxtBxAddress.Text = ""
TxtBxPosition.Text = ""
TxtBxPhone.Text = ""
TxtBxSSN.Text = ""
End Sub
Private Sub BtnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnClose.Click
Me.Close()
End Sub

Private Sub BtnNew_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnAdd.Click

Me.ListEmployees.Columns.Add(TxtBxFirstName.Text)
Me.ListEmployees.Items.Add(TxtBxMiddleName.Text)
Me.ListEmployees.Items.Add(TxtBxLastName.Text)
Me.ListEmployees.Items.Add(TxtBxAddress.Text)
Me.ListEmployees.Items.Add(TxtBxPosition.Text)
Me.ListEmployees.Items.Add(TxtBxPhone.Text)
Me.ListEmployees.Items.Add(TxtBxSSN.Text)
Me.ListEmployees.Items.Add(TxtBxID.Text)
End Sub

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.