6
Answers

exception unhandled

ta mu

ta mu

11y
1k
1
           

string cellvalue = dataGridView1["customer_id", index].Value.ToString();
 SqlCommand cmdd = new SqlCommand("SELECT * FROM bike_sales  WHERE customer_id='" + cellvalue + "'", my);
            SqlDataReader rdd = cmd.ExecuteReader();
            rdd.Read();
            up.textBox26.Text = rdd["stock_id"].ToString();,,,,,,,,,,,,,,,,,,,,,,here i got error index out of range exception unhandled
whats wrong with it hlp plz
Answers (6)