Dim dt As New DataTable("GrapeCity")
dt.Columns.Add("Product")
dt.Rows.Add(New Object(){"SPREAD for ASP.NET"})
dt.Rows.Add(New Object(){"InputMan for Windows Forms"})
Dim dm As New FarPoint.Web.Spread.Model.DefaultSheetDataModel(dt)
FpSpread1.ActiveSheetView.DataModel = dm
FpSpread1.ActiveSheetView.Columns(0).Width = 240
DataTable dt = new DataTable("GrapeCity");
dt.Columns.Add("Product");
dt.Rows.Add(new object[]{"SPREAD for ASP.NET"});
dt.Rows.Add(new object[]{"InputMan for Windows Forms"});
FarPoint.Web.Spread.Model.DefaultSheetDataModel dm = new FarPoint.Web.Spread.Model.DefaultSheetDataModel(dt);
FpSpread1.ActiveSheetView.DataModel = dm;
FpSpread1.ActiveSheetView.Columns[0].Width = 240;