FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > GroupDataModel Class : SetValue Method |
'Declaration Public Overrides Sub SetValue( _ ByVal row As Integer, _ ByVal col As Integer, _ ByVal value As Object _ )
'Usage Dim instance As GroupDataModel Dim row As Integer Dim col As Integer Dim value As Object instance.SetValue(row, col, value)
private void button1_Click(object sender, EventArgs e) { if ((FpSpread1.ActiveSheetView.DataModel) is FarPoint.Web.Spread.Model.GroupDataModel) { gm = (FarPoint.Web.Spread.Model.GroupDataModel)FpSpread1.ActiveSheetViewDataModel; gm.SetValue(1, 1, "Smith"); } }
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim gm As FarPoint.Web.Spread.Model.GroupDataModel If TypeOf (FpSpread1.ActiveSheetView.DataModel) Is FarPoint.Web.Spread.Model.GroupDataModel Then gm = FpSpread1.ActiveSheetView.DataModel gm.SetValue(1, 1, "Smith"); End Sub
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional