Posted on: 2/16/2014 9:29:22 AM | Views : 637

hi, i have a dropdown in gridview and it is storing null value in the table
here is what i have done so far
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["hvmsConnectionString"].ConnectionString); SqlCommand com = new SqlCommand("ETAUpdate", con); com.CommandType = CommandType.StoredProcedure; int eIndex = GridView1.EditIndex; string ddl1 = ((DropDownList)GridView1.Rows[eIndex].FindControl("ddlStatus")).SelectedItem.Value; com.Parameters.AddWithValue("@ETADate", e.NewValues["ETADate"]); com.Parameters.AddWithValue("@ArrivalPort", e.NewValues["ArrivalPort"]); com.Parameters.AddWithValue("@Name", e.NewValues["Name"]); com.Parameters.AddWithV ...

Go to the complete details ...