Initialization settings GRID style

xiaoxiao2021-04-04  226

// Last column data allows the form to fill Grid1.extendlastCol = true; // Display fixed line number grid1.displayrownumber = true; // Set column number grid1.cols = 7; // set the number of rows Grid1.Rows = 100; / / Return or set up the control in the current active cell to display a virtual box. Grid1.displayFocusRect = false; // Set the style grid1.fixedrowColStyle = flexcell.grid.fixedrowColStyleEnum.flat; // set the form of the form of the form of the form of the form, the form is indeed, the form is independent. Set the border pattern of the control Grid1.Borderstyle = flexcell.grid.BorderstyleEnum.fixedSingle; // Return or set the background color of the fixed line / column in the table. Grid1.backcolorfixed = color.fromargb (90, 158, 214); // Return or set up the selected cell in the table in the fixed row / column corresponding cell color, // Put the BackColorFixed property and BackColorFixedsel properties Set to different values, clearly reflect the location of the Selection. Grid1.backcolorfixedsel = color.fromargb (110, 180, 230); // Returns or sets the background color of the blank area in the table. Grid1.backcolorbkg = color.fromargb (90, 158, 214); // Return or set the background color grid1.backcolor1 = color.Fromargb (231, 235, 247); // return or set the even number in the table Background Color Grid1.backColor2 = Color.Fromargb (239, 243, 255); // Returns or sets the color grid1.gridColor = color.black; // returns or sets the color of the cell frame. Grid1.cellbordercolorfixed = color.fromargb (148, 190, 231);

转载请注明原文地址:https://www.9cbs.com/read-131739.html

New Post(0)