Spread Silverlight Documentation
RowViewportHeightChanging Event (GcSpreadSheet)
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > GcSpreadSheet Class : RowViewportHeightChanging Event
Occurs when a viewport row height is about to be changed.
Syntax
'Declaration
 
Public Event RowViewportHeightChanging As System.EventHandler(Of RowViewportHeightChangingEventArgs)
'Usage
 
Dim instance As GcSpreadSheet
Dim handler As System.EventHandler(Of RowViewportHeightChangingEventArgs)
 
AddHandler instance.RowViewportHeightChanging, handler
public event System.EventHandler<RowViewportHeightChangingEventArgs> RowViewportHeightChanging
Event Data

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

PropertyDescription
(Inherited from System.ComponentModel.CancelEventArgs)
Gets the changed value of the viewport row height.  
Gets the index of the viewport row whose height is changing.  
Example
This example uses the RowViewportHeightChanging event.
gcSpreadSheet1.AddRowViewport(0, 80);

private void gcSpreadSheet1_RowViewportHeightChanged(object sender, GrapeCity.Windows.SpreadSheet.UI.RowViewportHeightChangedEventArgs e)
        {
            listBox1.Items.Add(e.DeltaViewportHeight.ToString());
            listBox1.Items.Add(e.ViewportIndex.ToString());
        }

private void gcSpreadSheet1_RowViewportHeightChanging(object sender, GrapeCity.Windows.SpreadSheet.UI.RowViewportHeightChangingEventArgs e)
        {
            listBox1.Items.Add(e.DeltaViewportHeight.ToString());
            listBox1.Items.Add(e.ViewportIndex.ToString());
        }
GcSpreadSheet1.AddRowViewport(0, 80)
  
Private Sub GcSpreadSheet1_RowViewportHeightChanged(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.RowViewportHeightChangedEventArgs) Handles GcSpreadSheet1.RowViewportHeightChanged
        ListBox1.Items.Add(e.DeltaViewportHeight.ToString())
        ListBox1.Items.Add(e.ViewportIndex.ToString())
    End Sub

Private Sub GcSpreadSheet1_RowViewportHeightChanging(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.RowViewportHeightChangingEventArgs) Handles GcSpreadSheet1.RowViewportHeightChanging
        ListBox1.Items.Add(e.DeltaViewportHeight.ToString())
        ListBox1.Items.Add(e.ViewportIndex.ToString())
    End Sub
See Also