private void Form1_Load(object sender, System.EventArgs e)
{
//自動ソート機能を有効にします
fpSpread1.ActiveSheet.Columns[0].AllowAutoSort = true;
fpSpread1.ActiveSheet.DefaultStyle.CellType = new FarPoint.Win.Spread.CellType.NumberCellType();
fpSpread1.ActiveSheet.SetValue(0, 0, 10);
fpSpread1.ActiveSheet.SetValue(1, 0, 100);
fpSpread1.ActiveSheet.SetValue(2, 0, 50);
fpSpread1.ActiveSheet.SetValue(3, 0, 40);
fpSpread1.ActiveSheet.SetValue(4, 0, 80);
fpSpread1.ActiveSheet.SetValue(5, 0, 1);
fpSpread1.ActiveSheet.SetValue(6, 0, 65);
fpSpread1.ActiveSheet.SetValue(7, 0, 20);
fpSpread1.ActiveSheet.SetValue(8, 0, 30);
fpSpread1.ActiveSheet.SetValue(9, 0, 35);
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
'自動ソート機能を有効にします
FpSpread1.ActiveSheet.Columns(0).AllowAutoSort = True
FpSpread1.ActiveSheet.DefaultStyle.CellType = New FarPoint.Win.Spread.CellType.NumberCellType
FpSpread1.ActiveSheet.SetValue(0, 0, 10)
FpSpread1.ActiveSheet.SetValue(1, 0, 100)
FpSpread1.ActiveSheet.SetValue(2, 0, 50)
FpSpread1.ActiveSheet.SetValue(3, 0, 40)
FpSpread1.ActiveSheet.SetValue(4, 0, 80)
FpSpread1.ActiveSheet.SetValue(5, 0, 1)
FpSpread1.ActiveSheet.SetValue(6, 0, 65)
FpSpread1.ActiveSheet.SetValue(7, 0, 20)
FpSpread1.ActiveSheet.SetValue(8, 0, 30)
FpSpread1.ActiveSheet.SetValue(9, 0, 35)
End Sub