The below code is what I have inputing the information from a DataBase.
I want to be able to click a row and have that row once clicked pass the ID that is in the 5th column to a variable. I have been searching for a couple hours now and have not gotten anywhere with this.
(I have, however, won 3 Ipods and a iPhone lol)
Anyways, I am sure it is a simple solution any help will be appreciated. Thank You!
CODE
While OledbRead.Read()
listviewitem = New ListViewItem((OledbRead.Item("decFN")).ToString)
listviewitem.SubItems.Add((OledbRead.Item("decLN")).ToString)
listviewitem.SubItems.Add((OledbRead.Item("CompanyName")).ToString)
listviewitem.SubItems.Add(strUrgent)
listviewitem.SubItems.Add((OledbRead.Item("CallID")).ToString)
mainPage.ListView1.Items.Add(listviewitem)
End While
'Creates some column headers for the data.
columnheader = New ColumnHeader()
columnheader.Text = "First Name"
columnheader.Width = 85
mainPage.ListView1.Columns.Add(columnheader)
columnheader = New ColumnHeader()
columnheader.Text = "Last Name"
columnheader.Width = 85
mainPage.ListView1.Columns.Add(columnheader)
columnheader = New ColumnHeader()
columnheader.Text = "Customer"
columnheader.Width = 160
mainPage.ListView1.Columns.Add(columnheader)
columnheader = New ColumnHeader()
columnheader.Text = "Urgent"
columnheader.Width = 75
mainPage.ListView1.Columns.Add(columnheader)
columnheader = New ColumnHeader()
columnheader.Text = "Customer"
columnheader.Width = 0
mainPage.ListView1.Columns.Add(columnheader)