private void Page_Load(object sender, System.EventArgs e)
{
if (this.IsPostBack) return;
DataTable dt = new DataTable("FarPoint");
dt.Columns.Add("Product");
dt.Rows.Add(new Object[] {"Spread"});
dt.Rows.Add(new Object[] {"Input Pro"});
DataRow nrow;
nrow = dt.NewRow();
nrow["Product"] = "To Be Announced";
dt.Rows.Add(nrow);
dt.AcceptChanges();
FarPoint.Web.Spread.Model.DefaultSheetDataModel dm = new FarPoint.Web.Spread.Model.DefaultSheetDataModel(dt);
FpSpread1.ActiveSheetView.DataModel = dm;
FpSpread1.ActiveSheetView.Columns[0].Width = 240;
DataRowView drv;
DataView dv;
drv = dm.GetDataRow(1);
dv = dm.GetDataView();
ListBox1.Items.Add(Convert.ToString(drv.RowVersion));
ListBox1.Items.Add(Convert.ToString(dm.GetDataTable()));
ListBox1.Items.Add(Convert.ToString(dv.Count));
}