private void btn_actualizar_Click(object sender, EventArgs e) { for (int i = 0; i < dg_Documentos.RowCount; i++) { D.actualizarDocs(dg_Documentos.Rows[i].Cells[0].Value.ToString(), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[2].Value), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[3].Value), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[4].Value), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[5].Value), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[6].Value), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[7].Value), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[8].Value), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[9].Value), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[10].Value), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[11].Value), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[12].Value), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[13].Value), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[14].Value), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[15].Value), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[16].Value), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[17].Value), Convert.ToBoolean(dg_Documentos.Rows[i].Cells[18].Value) ); } }