ボタンが押されたときにコンボボックスのテキストを列TECNICOに設定したい。
しかし、実行時には、TECNICO列に設定値を表示できません
private void asing_Click(object sender, EventArgs e)
{
if ( tecnicos.Text.Length > 0)
{
try
{
SqlConnection con = conec.ObtenerCon();
SqlCommand sel = new SqlCommand("SELECT * FROM RTID_STATUS WHERE ID_RTID='" + gridView1.GetFocusedRowCellValue(colID_RTID) + "'", con);
SqlDataReader rs = sel.ExecuteReader();
if (rs.Read())
{
con.Close();
SqlConnection con1 = conec.ObtenerCon();
MessageBox.Show(" hay :\t" + gridView1.GetFocusedRowCellValue(colID_RTID));
SqlCommand up = new SqlCommand("UPDATE RTID_STATUS SET ID_TECH='" + idtec(tecnicos.Text) + "'", con1);
gridView1.SetRowCellValue(gridView1.FocusedRowHandle, tec,tecnicos.Text.ToString());
gridView1.RefreshRow(gridView1.FocusedRowHandle);
SqlDataReader resu = up.ExecuteReader();
con1.Close();
}
else