I'm trying to add the date column from my database into a listview, but I get an error when adding the subitems. I forgot how to add the date in correctly. Here is my item adding code in form_load:
Dim mRow As DataRow
Dim mItem As ListViewItem
For Each mRow In DataSet61.Tables("Orders").Rows
'Column 1
mItem = ListView1.Items.Add(mRow.Item("Order_ID"))
'Column 2
mItem.SubItems.Add(mRow.Item("Customer_ID"))
'Column 3
mItem.SubItems.Add(mRow.Item("Date"))
'Column 4
mItem.SubItems.Add(mRow.Item("Total"))
'Column 5
mItem.SubItems.Add(mRow.Item("Fulfilled"))
Next
Plase help me, I need it working for a project that's due Monday. THANKS!
Dim mRow As DataRow
Dim mItem As ListViewItem
For Each mRow In DataSet61.Tables("Orders").Rows
'Column 1
mItem = ListView1.Items.Add(mRow.Item("Order_ID"))
'Column 2
mItem.SubItems.Add(mRow.Item("Customer_ID"))
'Column 3
mItem.SubItems.Add(mRow.Item("Date"))
'Column 4
mItem.SubItems.Add(mRow.Item("Total"))
'Column 5
mItem.SubItems.Add(mRow.Item("Fulfilled"))
Next
Plase help me, I need it working for a project that's due Monday. THANKS!