Here i have add a ComboBox, DataGridView and DataTimePicker in Form. Here is the Code. I have added HardCoded values in ComboxBox.
Public Class DataGridView
Private Sub DataGridView_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim dt As New DataTable()
dt.Columns.AddRange(New DataColumn(2) {New DataColumn("Id", GetType(Integer)), New DataColumn("Name", GetType(String)), New DataColumn("Country", GetType(String))})
dt.Rows.Add(1, "John Hammond", "United States")
dt.Rows.Add(2, "Mudassar Khan", "India")
dt.Rows.Add(3, "Suzanne Mathews", "France")
dt.Rows.Add(4, "Robert Schidner", "Russia")
DataGridView1.DataSource = dt
End Sub
Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick
DataGridView1.Rows(e.RowIndex).Cells(2).Value = Me.ComboBox1.Text
Me.DateTimePicker1.Show()
DataGridView1.Rows(e.RowIndex).Cells(1).Value = DateTimePicker1.Text
End Sub
End Class