private void grabarsele() { try { //falta mostrar el ACFid Int32 total = 0; foreach (DataGridViewRow row in dataListado.Rows) { string Rta = string.Empty; if (Convert.ToBoolean(row.Cells[0].Value)) { Rta = NacfACFp_Activo_Fijo.Insertar2( Convert.ToString(row.Cells[2].Value) //ACFdescripcion ); if (Rta.Equals("OK")) { } else { break; } } } MessageBox.Show("Datos agregados"); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void toolStripGuardar_Click(object sender, EventArgs e) { try { //falta mostrar el ACFid Int32 total = 0; foreach (DataGridViewRow row in dataListado.Rows) { string Rta = string.Empty; total = total + Convert.ToInt32(row.Cells[2].Value); Rta = NacfACFp_Activo_Fijo.Insertar2( Convert.ToString(row.Cells[0].Value) //ACFdescripcion ); if (Rta.Equals("OK")) { } else { break; } } MessageBox.Show("Datos agregados"); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }