Spread Windows Forms 10.0 Product Documentation
ColumnWidthChanging Event
Example 


Occurs when the column width is changing.
Syntax
'Declaration
 
Public Event ColumnWidthChanging As ColumnWidthChangingEventHandler
'Usage
 
Dim instance As FpSpread
Dim handler As ColumnWidthChangingEventHandler
 
AddHandler instance.ColumnWidthChanging, handler
public event ColumnWidthChangingEventHandler ColumnWidthChanging
Event Data

The event handler receives an argument of type ColumnWidthChangingEventArgs containing data related to this event. The following ColumnWidthChangingEventArgs properties provide information specific to this event.

PropertyDescription
CancelGets or sets whether to cancel the column width change.  
ColumnListGets the list of columns whose widths have changed.  
HeaderGets whether the column indexes are row header columns.  
ViewGets the view that contains the columns whose widths have changed.  
WidthGets the new width of the column.  
Example
This example uses the ColumnWidthChanging event.
private void fpSpread1_ColumnWidthChanging(object sender, FarPoint.Win.Spread.ColumnWidthChangingEventArgs e)
        {
            listBox1.Items.Add(e.Width);
        }
Private Sub FpSpread1_ColumnWidthChanging(sender As Object, e As FarPoint.Win.Spread.ColumnWidthChangingEventArgs) Handles FpSpread1.ColumnWidthChanging
        ListBox1.Items.Add(e.Width)
    End Sub
Requirements

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

See Also

Reference

FpSpread Class
FpSpread Members

 

 


Copyright © GrapeCity, inc. All rights reserved.