Spread Windows Forms 8.0 Product Documentation
RemoveColumnHeaderSpanCell Method
Example 


Row index of anchor cell for span (at which spanned cells started)
Column index of anchor cell for span (at which spanned cells started)
Removes the span that contains a specified anchor cell from a range of cells in the column headers.
Syntax
'Declaration
 
Public Sub RemoveColumnHeaderSpanCell( _
   ByVal row As Integer, _
   ByVal column As Integer _
) 
'Usage
 
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
 
instance.RemoveColumnHeaderSpanCell(row, column)
public void RemoveColumnHeaderSpanCell( 
   int row,
   int column
)

Parameters

row
Row index of anchor cell for span (at which spanned cells started)
column
Column index of anchor cell for span (at which spanned cells started)
Example
This example removes the specified span from the column header.
fpSpread1.ActiveSheet.ColumnHeaderRowCount = 4; 
fpSpread1.ActiveSheet.AddColumnHeaderSpanCell(0, 0, 2, 2);

private void button1_Click(object sender, System.EventArgs e)
{
fpSpread1.ActiveSheet.RemoveColumnHeaderSpanCell(0, 0);
}

FpSpread1.ActiveSheet.ColumnHeaderRowCount = 4 
FpSpread1.ActiveSheet.AddColumnHeaderSpanCell(0, 0, 2, 2)

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
FpSpread1.ActiveSheet.RemoveColumnHeaderSpanCell(0, 0)
End Sub
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Spanning Cells in a Header

 

 


Copyright © GrapeCity, inc. All rights reserved.