با استفاده از id می تونم ولی با استفاده از نام کالا نمی شه
این کد من
var upConnection = new SqlConnection(@"Data Source=.\SQLEXPRESS;Initial Catalog=forshgah;Integrated Security=True;Pooling=False");
var upCommand = new SqlCommand("SELECT ghforosh FROM listkharid WHERE name = "+"'"+comboBox2.Text+"'", upConnection);
upConnection.Open();
SqlDataReader reader = upCommand.ExecuteReader();
reader.Read();
labghymat.Text = reader["ghforosh"].ToString();
upConnection.Close();
این خطا را می ده
Invalid attempt to read when no data is present.