可以使用Spread for WinForms中提供的以下方法来设置:
- fpSpread1.Sheets[0].AlternatingRows.Count = 2;
- fpSpread1.Sheets[0].AlternatingRows[0].BackColor = Color.RoyalBlue;
- fpSpread1.Sheets[0].AlternatingRows[0].ForeColor = Color.Navy;
- fpSpread1.Sheets[0].AlternatingRows[1].BackColor = Color.LightYellow;
- fpSpread1.Sheets[0].AlternatingRows[1].ForeColor = Color.Navy;
复制代码 |