回复 1楼wangmj的帖子
wangmj 你好,
如果数据行不明显,可以通过行背景色来设置,文本颜色可以通过前景色更改。
图片中蓝色部分也可以更改:
- private void Form1_Load(object sender, EventArgs e)
- {
- this.fpSpread1.Enabled = false;
- this.fpSpread1.Sheets[0].RowCount = 10;
- this.fpSpread1.Sheets[0].Rows[0].BackColor = System.Drawing.Color.LightGray;
- this.fpSpread1.Sheets[0].Rows[0].ForeColor = System.Drawing.Color.White;
- this.fpSpread1.Sheets[0].GrayAreaBackColor = System.Drawing.Color.LightGray;
- }
复制代码 |