Dim cmbcaste As New DataGridViewComboBoxColumn() cmbcaste.Name = "Caste" cmbcaste.HeaderText = "Caste" sql = "Select Description from Category where Catgry = 1" If rs.State = 1 Then rs.Close() rs.Open(sql, MainCon, 1, 3) Do While Not rs.EOF cmbcaste.Items.Add(rs.Fields(0).Value) rs.MoveNext() Loop dgvUserDetails.Columns.Add(cmbcaste)
textbox1.text = dgvUserDetails.CurrentRow.Cells("Caste").Value.ToString()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)