Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/06/2011, 08:55
Avatar de Zeptimo
Zeptimo
 
Fecha de Ingreso: enero-2008
Mensajes: 269
Antigüedad: 16 años, 3 meses
Puntos: 1
Respuesta: errro con valores null

esta es la solucion que realice

en la variable squery esta el escript del insert

squery = squery + "(" + (int)(string.IsNullOrEmpty(radGridView1.Rows[i].Cells[0].Value.ToString()) ? 0 : Convert.ToInt32(radGridView1.Rows[i].Cells[0].Value)) + " ,"+

(int)(string.IsNullOrEmpty(radGridView1.Rows[i].Cells[1].Value.ToString()) ? 0 : Convert.ToInt32(radGridView1.Rows[i].Cells[1].Value)) + ")";

saludos..