//boton aceptar
 protected void Button2_Click(object sender, EventArgs e)
 {
     try
     {
         string nombre = "";
         foreach (GridViewRow row in vistaDocumentos.Rows)
         {
             nombre = row.Cells[1].Text;
         }
         cnDoc.aceptarDocumento(vistaDocumentos.SelectedRow.Cells[1].Text);
         tablaDocumentos2();
     }
     catch (Exception ss)
     {
     }
 }
Example #2
0
 private void AceptarBtn_Click_1(object sender, EventArgs e)
 {
     try
     {
         string nombre = "";
         foreach (DataGridViewRow row in DocumentosView.SelectedRows)
         {
             nombre = row.Cells["NombreDoc"].Value.ToString();
         }
         MessageBox.Show("nombre= " + nombre);
         cnDoc.aceptarDocumento(nombre);
         muestraTabla();
     }
     catch (Exception ss)
     {
         MessageBox.Show(ss.ToString());
     }
 }
        protected void vistaDocumentos_RowEditing1(object sender, GridViewEditEventArgs e)
        {
            string nombre2 = vistaDocumentos.SelectedRow.Cells[12].Text;

            foreach (GridViewRow row in vistaDocumentos.Rows)
            {
                if (row.RowIndex == vistaDocumentos.SelectedIndex)
                {
                    row.BackColor = ColorTranslator.FromHtml("#1C83DC");;
                    row.ToolTip   = string.Empty;
                }
                else
                {
                    row.BackColor = Color.White;
                }
            }
            CN_Documentos cn = new CN_Documentos();

            cn.aceptarDocumento(nombre2);
            tablaDocumentos2();
        }