Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Me.IsPostBack Then Return
Dim dm As New FarPoint.Web.Spread.Model.DefaultSheetDataModel(10, 10)
FpSpread1.ActiveSheetView.DataModel = dm
Dim arr(4,9) As Object
Dim o As Object
For i As Integer = 0 To 4
For j As Integer = 0 To 9
arr(i, j) = i + j
Next j
Next i
dm.SetArray(1, 0, arr)
End Sub
private void Page_Load(object sender, System.EventArgs e)
{
if (this.IsPostBack) return;
FarPoint.Web.Spread.Model.DefaultSheetDataModel dm = new FarPoint.Web.Spread.Model.DefaultSheetDataModel(10, 10);
FpSpread1.ActiveSheetView.DataModel = dm;
object[,] arr;
arr = new object[4, 9];
for (int i = 0; i < 4; i++)
{
for ( int j=0; j < 9; j++)
{
arr[i, j] = i + j;
}
}
dm.SetArray(1, 0, arr);
}