private void AddReport(object sender, EventArgs e) { EditReportForm F = new EditReportForm(); F.sFormName = sFormName; F.ShowDialog(); F.Dispose(); DataBind(); }
private void EditReport(object sender, EventArgs e) { if (gridView1.RowCount == 0) { return; } EditReportForm F = new EditReportForm(); DataRow dr = gridView1.GetDataRow(gridView1.FocusedRowHandle); F.sReportName = dr["F_ReportName"].ToString(); F.sFormName = sFormName; F.ShowDialog(); F.Dispose(); DataBind(); }