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


column
Column index
value
MergePolicy enumeration setting

Glossary Item Box

Sets whether or how cells in a column on this sheet that have the same content are joined in a single cell across multiple rows.

Syntax

Visual Basic (Declaration) 
Public Sub SetColumnMerge( _
   ByVal column As Integer, _
   ByVal value As MergePolicy _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim column As Integer
Dim value As MergePolicy
 
instance.SetColumnMerge(column, value)
C# 
public void SetColumnMerge( 
   int column,
   MergePolicy value
)

Parameters

column
Column index
value
MergePolicy enumeration setting

Remarks

The MergePolicy setting specifies if and how cells in this column are automatically merged.

Example

This example sets all cells in a column that contain the same data to automatically merge.
C#Copy Code
FpSpread1.ActiveSheetView.Cells[0, 2, 2, 2].Text = "Test";
FpSpread1.ActiveSheetView.SetColumnMerge(2, FarPoint.Web.Spread.Model.MergePolicy.Always);
Visual BasicCopy Code
FpSpread1.ActiveSheetView.Cells(0, 2, 2, 2).Text = "Test"
FpSpread1.ActiveSheetView.SetColumnMerge(2, FarPoint.Web.Spread.Model.MergePolicy.Always)

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.