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 cmbCaste.HeaderText = "jaita" cmbCaste.Name = "Caste" dgvUserDetails.Columns.Add(cmbCaste) dgvUserDetails.Columns("Caste").DisplayIndex = 10 rs.Close()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)