private void p2RowUpButton_Click(object sender, EventArgs e) { int index = p2ResultGridView.FocusedRowHandle; if (index <= 0) { return; } PhysicalPage2Row row = NewP2Row(); row.No = P2Rows[index].No; row.Line = P2Rows[index].Line; row.Requested = P2Rows[index].Requested; row.Conclusion = P2Rows[index].Conclusion; p2Bookmark.Get(); P2Rows.RemoveAt(index); P2Rows.Insert(index - 1, row); ReorderP2Rows(); AppHelper.RefreshGridData(p2ResultGridView); p2Bookmark.Goto(); p2ResultGridView.MoveBy(-1); p2ResultGrid.Focus(); }
private PhysicalPage2Row NewP2Row() { PhysicalPage2Row row = new PhysicalPage2Row(); row.No = 0; row.Line = false; row.Requested = ""; row.Conclusion = ""; return(row); }
private void SetDataSetToPage2() { P2Rows.Clear(); for (int i = 0; i < P2Set.RowCount; i++) { P2Set.Fetch(i); PhysicalPage2Row p2Row = new PhysicalPage2Row(); p2Row.No = P2Set.No; p2Row.Line = P2Set.Line; p2Row.Requested = P2Set.Requested; p2Row.Conclusion = P2Set.Conclusion; P2Rows.Add(p2Row); } p2ResultNoColumn.SortOrder = ColumnSortOrder.Ascending; }