This has Nothing to do with your question, though I hope it helps.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
With TableLayoutPanel1
.ColumnCount = 7 : .RowCount = 2 : .CellBorderStyle = TableLayoutPanelCellBorderStyle.Single
End With
addLabel("Monday", 1)
addLabel("Tuesday", 2)
addLabel("Wednesday", 3)
addLabel("Thursday", 4)
addLabel("Friday", 5)
addLabel("Saturday", 6)
End Sub
Private Sub addLabel(ByVal dayOfWeek As String, ByVal columnIndex As Integer)
TableLayoutPanel1.Controls.Add(New Label With {.Text = dayOfWeek, .Location = New Point(10, 20), .Size = New Size(100, 30)}, columnIndex, 0)
'Controls.Add(TableLayoutPanel1)
End Sub Since I do not bother with db(database), I have no idea how to search it, though I do believe that you should advise which db you are using; if SQL, Access, etc..