private void btnPrint_Click(object sender, EventArgs e) { DataTable dt = dsCards.memberdata.Copy(); //for (int i = dt.Rows.Count - 1; i >= 0; i--) //{ // if ((bool)dt.Rows[i]["chk"] == false) // dt.Rows.RemoveAt(i); //} XRepCard front = new XRepCard(dt); front.ShowPreview(); }
private void btnPrintEditor_Click(object sender, EventArgs e) { DataTable dt = dsCards.memberdata.Copy(); for (int i = dt.Rows.Count - 1; i >= 0; i--) { if ((bool)dt.Rows[i]["chk"] == false) dt.Rows.RemoveAt(i); } XRepCard front = new XRepCard(dt); front.ShowDesigner(); }