回复 1楼5628027的帖子
在Spread for Windows Forms 6.0 中可以尝试以下代码设置:
- private void Form1_Load(object sender, EventArgs e)
- {
- fpSpread1.ActiveSheet.ColumnCount = 4;
- fpSpread1.ActiveSheet.VerticalGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.None, Color.Transparent, Color.Transparent, Color.Transparent, 1);
- fpSpread1.ActiveSheet.HorizontalGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.None, Color.Transparent, Color.Transparent, Color.Transparent, 1);
- fpSpread1.ActiveSheet.Columns[0].Border = new FarPoint.Win.LineBorder(Color.LightGray, 1, true, false, false, true);
- fpSpread1.ActiveSheet.Columns[1].Border = new FarPoint.Win.LineBorder(Color.LightGray, 1, false, false, true, true);
- fpSpread1.ActiveSheet.Columns[2].Border = new FarPoint.Win.LineBorder(Color.LightGray, 1, false, false, true, true);
- fpSpread1.ActiveSheet.Columns[3].Border = new FarPoint.Win.LineBorder(Color.LightGray, 1, false, false, true, true);
- }
复制代码 |