Dim Raw As New DataGridViewComboBoxColumn()
Raw.HeaderText = "Raw Material"
Raw.Name = "cmb"
con.Open()
cmd = New SqlCommand("select Raw from Raws ", con)
DR = cmd.ExecuteReader
While DR.Read()
Raw.Items.AddRange(DR("Raw").ToString())
End While
DR.Close()
DataGridView1.Columns.Add(Raw)
con.Close()
我想知道如何使用代码从datagridview列中选择一个值。