Spread for ASP.NET 7.0 Product Documentation
SetValue Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > GroupDataModel Class : SetValue Method


row
Row index of the cell
col
Column index of the cell
value
Value to assign to the cell

Glossary Item Box

Sets the value of the cell in the group.

Syntax

Visual Basic (Declaration) 
Public Overrides Sub SetValue( _
   ByVal row As Integer, _
   ByVal col As Integer, _
   ByVal value As Object _
) 
Visual Basic (Usage)Copy Code
Dim instance As GroupDataModel
Dim row As Integer
Dim col As Integer
Dim value As Object
 
instance.SetValue(row, col, value)
C# 
public override void SetValue( 
   int row,
   int col,
   object value
)

Parameters

row
Row index of the cell
col
Column index of the cell
value
Value to assign to the cell

Return Value

Object containing the value

Example

This example sets the value for the specified index.
C#Copy Code
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");
}
}
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.