Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If IsPostBack Then
Return
End If
FpSpread1.ActiveSheetView.DataModel.SetValue(0, 0, "One")
FpSpread1.ActiveSheetView.DataModel.SetValue(0, 1, "Two")
FpSpread1.ActiveSheetView.DataModel.SetValue(0, 2, "Three")
FpSpread1.ActiveSheetView.DataModel.SetValue(2, 0, "Un")
FpSpread1.ActiveSheetView.DataModel.SetValue(2, 1, "Deux")
FpSpread1.ActiveSheetView.DataModel.SetValue(2, 2, "Trois")
Dim model As FarPoint.Web.Spread.Model.DefaultSheetDataModel = FpSpread1.ActiveSheetView.DataModel
ListBox1.Items.Add(Convert.ToString(model.NonEmptyColumnCount))
ListBox1.Items.Add(Convert.ToString(model.NonEmptyRowCount))
End Sub
private void Page_Load(object sender, System.EventArgs e)
{
if (this.IsPostBack) return;
FpSpread1.ActiveSheetView.DataModel.SetValue(0, 0, "One");
FpSpread1.ActiveSheetView.DataModel.SetValue(0, 1, "Two");
FpSpread1.ActiveSheetView.DataModel.SetValue(0, 2, "Three");
FpSpread1.ActiveSheetView.DataModel.SetValue(2, 0, "Un");
FpSpread1.ActiveSheetView.DataModel.SetValue(2, 1, "Deux");
FpSpread1.ActiveSheetView.DataModel.SetValue(2, 2, "Trois");
FarPoint.Web.Spread.Model.DefaultSheetDataModel model = (FarPoint.Web.Spread.Model.DefaultSheetDataModel)FpSpread1.ActiveSheetView.DataModel;
ListBox1.Items.Add(Convert.ToString(model.NonEmptyColumnCount));
ListBox1.Items.Add(Convert.ToString(model.NonEmptyRowCount));
}