请参考如下代码
- int rCount = FpSpread1.Sheets[0].RowCount;
- for (int row = 0; row < rCount; row++)
- {
- //Set border for normal cell
- FpSpread1.Sheets[0].Cells[row, 1].Border.BorderSizeTop = 0;
- }
- //Set border for alt row
- FpSpread1.Sheets[0].StyleModel.GetCompositeInfo(-1, 1, 0, FpSpread1.Sheets[0].DefaultStyle).Border.BorderSizeBottom = 0;
复制代码 |