WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridCellRenderEventArgs - WPF API Reference | Syncfusion event. ">

    Show / Hide Table of Contents

    Class GridCellRenderEventArgs

    Provides data about the cancelable event.

    Inheritance
    System.Object
    SyncfusionRoutedEventArgs
    GridCellRenderEventArgs
    Inherited Members
    SyncfusionRoutedEventArgs.ToString()
    Namespace: Syncfusion.Windows.Controls.Grid
    Assembly: Syncfusion.Grid.Wpf.dll
    Syntax
    public sealed class GridCellRenderEventArgs : SyncfusionRoutedEventArgs
    Remarks

    GridDrawCellEventArgs is a custom event argument class used by the event to allow custom drawing of a cell. Set the Cancel property true if you have drawn the cell contents and do not want the grid to proceed with default drawing of the cell.

    Constructors

    GridCellRenderEventArgs(GridStyleInfo, RenderCellArgs, DrawingContext, RoutedEvent, Object)

    Initializes a new GridCellRenderEventArgs.

    Declaration
    public GridCellRenderEventArgs(GridStyleInfo style, RenderCellArgs rca, DrawingContext dc, RoutedEvent routedEvent, object source)
    Parameters
    Type Name Description
    GridStyleInfo style

    Cell style.

    RenderCellArgs rca

    Render cell information.

    System.Windows.Media.DrawingContext dc

    Drawing context.

    System.Windows.RoutedEvent routedEvent

    Routed event.

    System.Object source

    Event source.

    Properties

    DrawingContext

    Gets the drawing context associated with the current cell that is getting rendered. Do not dispose the DrawingContext in the event.

    Declaration
    [TraceProperty(true)]
    public DrawingContext DrawingContext { get; }
    Property Value
    Type Description
    System.Windows.Media.DrawingContext

    The drawing context.

    RenderCellArgs

    Layout information about the cell.

    Declaration
    [TraceProperty(true)]
    public RenderCellArgs RenderCellArgs { get; }
    Property Value
    Type Description
    RenderCellArgs

    Style

    Gets the style object associated with that cell.

    Declaration
    [TraceProperty(true)]
    public GridStyleInfo Style { get; }
    Property Value
    Type Description
    GridStyleInfo
    Remarks

    Changes to the style object are allowed. However, these changes will not be saved back in the grid or cached. But, you can make some adjustments to the style object just before the cell is drawn. You cannot change Base Style, Interior, or Cell Type at this time. See for changing interior or other style formattings.

    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved