Spread Silverlight Documentation
CellTextRendering Event (GcSpreadSheet)
Example 


Occurs when the cell text is rendering.
Syntax
'Declaration
 
Public Event CellTextRendering As System.EventHandler(Of CellTextRenderingEventArgs)
'Usage
 
Dim instance As GcSpreadSheet
Dim handler As System.EventHandler(Of CellTextRenderingEventArgs)
 
AddHandler instance.CellTextRendering, handler
public event System.EventHandler<CellTextRenderingEventArgs> CellTextRendering
Event Data

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

PropertyDescription
CellTextGets or sets the cell text.  
ColumnGets the column index of the cell. (Inherited from GrapeCity.Windows.SpreadSheet.UI.CellEventArgs)
RowGets the row index of the cell. (Inherited from GrapeCity.Windows.SpreadSheet.UI.CellEventArgs)
Example
This example uses the CellTextRendering event.
private void button1_Click_1(object sender, RoutedEventArgs e)
        {
            GcSpreadSheet1.ActiveSheet.Cells[1, 2].Value = "Testing";
        }

private void GcSpreadSheet1_CellTextRendering(object sender, GrapeCity.Windows.SpreadSheet.UI.CellTextRenderingEventArgs e)
        {
            TextBox1.Text = e.Column.ToString();
        }
Private Sub button1_Click(sender As Object, e As RoutedEventArgs) Handles button1.Click
GcSpreadSheet1.ActiveSheet.Cells(1, 2).Value = "Testing"
End Sub

Private Sub GcSpreadSheet1_CellTextRendering(sender As Object, e As GrapeCity.Windows.SpreadSheet.UI.CellTextRenderingEventArgs) Handles GcSpreadSheet1.CellTextRendering
TextBox1.Text = e.Column.ToString()
End Sub
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.