给外侧单元格设置边框即可
fpSpread1.ActiveSheet.RowHeader.Rows[fpSpread1.ActiveSheet.RowCount - 1].Border = new FarPoint.Win.LineBorder(Color.Black, 2, false, false, false, true);
fpSpread1.ActiveSheet.Rows[fpSpread1.ActiveSheet.RowCount - 1].Border = new FarPoint.Win.LineBorder(Color.Black, 2, false, false, false, true);
fpSpread1.ActiveSheet.ColumnHeader.Columns[fpSpread1.ActiveSheet.ColumnCount - 1].Border = new FarPoint.Win.LineBorder(Color.Black, 2, false, false, true, false);
fpSpread1.ActiveSheet.Columns[fpSpread1.ActiveSheet.ColumnCount - 1].Border = new FarPoint.Win.LineBorder(Color.Black, 2, false, false, true, false);
fpSpread1.ActiveSheet.Cells[fpSpread1.ActiveSheet.RowCount - 1,fpSpread1.ActiveSheet.ColumnCount - 1].Border = new FarPoint.Win.LineBorder(Color.Black, 2, false, false, true, true);
|