GrapeCity MultiRow Windows Forms Documentation
SetValues Method


One or more objects that represent the cell values in the row or a System.Array of System.Object values.
Sets the values of the row's cells.
Syntax
Public Function SetValues( _
   ByVal ParamArray values() As Object _
) As Boolean
Dim instance As Row
Dim values() As Object
Dim value As Boolean
 
value = instance.SetValues(values)
public bool SetValues( 
   params object[] values
)

Parameters

values
One or more objects that represent the cell values in the row or a System.Array of System.Object values.

Return Value

true if all values have been set; otherwise, false.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe values parameter is a null reference (Nothing in Visual Basic).
Remarks

The values parameter represents a variable number of arguments used to populate cell values in the row. These values can be passed to this method as multiple, individual arguments or as members of a single System.Array. The values are expected to be instances of type System.Object; however, if you pass an array of value type values (such as System.Int32 values), this method treats the array as a single object and assigns it to a single cell. To avoid this behavior, you must cast a value type array to a System.Object array or pass in multiple values as multiple arguments.

If there are more values in the values list than there are cells to be initialized, this method ignores the extra values and returns false. This method also returns false if any of the specified values cannot be set.

If there are fewer values than there are cells, the remaining unmatched cells retain their current values.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Row Class
Row Members
SetValue(Int32,Int32,Object) Method

 

 


Copyright © GrapeCity, inc. All rights reserved.