private void tsbtnExportUsuarios_Click_1(object sender, EventArgs e) { try { if (DgvUsuarios.RowCount > 0) { ObjFunciones.ExportarDataGridViewExcel(ref DgvUsuarios, true, true); } } catch (Exception ex) { MessageBox.Show(ex.Message, "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void tsbtnExportar_Click(object sender, EventArgs e) { try { if (DgvPerfilUsuario.RowCount > 0) { ClsFunciones objFunciones = new ClsFunciones(); objFunciones.ExportarDataGridViewExcel(ref DgvPerfilUsuario, true, true); } } catch (Exception ex) { MessageBox.Show(ex.Message, "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }