예제 #1
0
 private void PaintGrdRec()
 {
     //FarPoint.Win.Spread.Cell aCell;
     GrdRec.Visible = false;
     GrdRec.Reset();
     GrdRec.ActiveSheet.RowCount    = 0;
     GrdRec.ActiveSheet.ColumnCount = 4;
     GrdRec.Height = 682;
     GrdRec.Width  = 1017;
     GrdRec.ActiveSheet.SetColumnWidth(0, 85);
     GrdRec.ActiveSheet.SetColumnWidth(1, 200);
     GrdRec.ActiveSheet.SetColumnWidth(2, 85);
     GrdRec.ActiveSheet.SetColumnWidth(3, 85);
     GrdRec.ActiveSheet.SetColumnLabel(0, 0, "Vou NO");
     GrdRec.ActiveSheet.SetColumnLabel(0, 1, "Guest Name");
     GrdRec.ActiveSheet.SetColumnLabel(0, 2, "Vou Date");
     GrdRec.ActiveSheet.SetColumnLabel(0, 3, "MAC");
     FarPoint.Win.Spread.Column col;
     FarPoint.Win.Spread.CellType.TextCellType cell = new FarPoint.Win.Spread.CellType.TextCellType();
     col          = GrdRec.ActiveSheet.Columns[0, 3];
     col.CellType = cell;
     GrdRec.ScrollBarTrackPolicy = FarPoint.Win.Spread.ScrollBarTrackPolicy.Off;
     GrdRec.BorderStyle          = BorderStyle.None;
     GrdRec.Visible = true;
 }
예제 #2
0
 private void PaintGrdRecMember()
 {
     //FarPoint.Win.Spread.Cell aCell;
     GrdRec.Visible = false;
     GrdRec.Reset();
     GrdRec.ActiveSheet.RowCount    = 0;
     GrdRec.ActiveSheet.ColumnCount = 3;
     GrdRec.Height = 682;
     GrdRec.Width  = 1017;
     GrdRec.ActiveSheet.SetColumnWidth(0, 85);
     GrdRec.ActiveSheet.SetColumnWidth(1, 300);
     GrdRec.ActiveSheet.SetColumnWidth(2, 85);
     GrdRec.ActiveSheet.SetColumnLabel(0, 0, "Mem Id");
     GrdRec.ActiveSheet.SetColumnLabel(0, 1, "Hotel Name");
     GrdRec.ActiveSheet.SetColumnLabel(0, 2, "Price List");
     FarPoint.Win.Spread.Column col;
     FarPoint.Win.Spread.CellType.TextCellType cell = new FarPoint.Win.Spread.CellType.TextCellType();
     col          = GrdRec.ActiveSheet.Columns[0, 2];
     col.CellType = cell;
     GrdRec.ScrollBarTrackPolicy = FarPoint.Win.Spread.ScrollBarTrackPolicy.Off;
     GrdRec.BorderStyle          = BorderStyle.None;
     GrdRec.Visible = true;
 }