private void Form1_Load(object sender, System.EventArgs e)
{
//左側から2列を固定表示とします
fpSpread1.ActiveSheet.FrozenColumnCount = 2;
//上側から2行を固定表示とします
fpSpread1.ActiveSheet.FrozenRowCount = 2;
fpSpread1.ActiveSheet.Columns[0, 1].BackColor = Color.LightCyan;
fpSpread1.ActiveSheet.Rows[0, 1].BackColor = Color.LightCyan;
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
'左側から2列を固定表示とします
FpSpread1.ActiveSheet.FrozenColumnCount = 2
'上側から2行を固定表示とします
FpSpread1.ActiveSheet.FrozenRowCount = 2
FpSpread1.ActiveSheet.Columns(0, 1).BackColor = Color.LightCyan
FpSpread1.ActiveSheet.Rows(0, 1).BackColor = Color.LightCyan
End Sub
private void Form1_Load(object sender, System.EventArgs e)
{
//右側から2列を固定表示とします
fpSpread1.ActiveSheet.FrozenTrailingColumnCount = 2;
//下側から2行を固定表示とします
fpSpread1.ActiveSheet.FrozenTrailingRowCount = 2;
fpSpread1.ActiveSheet.Columns[fpSpread1.ActiveSheet.ColumnCount - 2, fpSpread1.ActiveSheet.ColumnCount - 1].BackColor = Color.LightCyan;
fpSpread1.ActiveSheet.Rows[fpSpread1.ActiveSheet.RowCount - 2, fpSpread1.ActiveSheet.RowCount - 1].BackColor = Color.LightCyan;
}