ta mu

ta mu

  • NA
  • 201
  • 81.8k

exception unhandled

Dec 11 2013 9:00 AM
           

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)