FlexSheet for WPF | ComponentOne
C1.WPF.FlexGrid Namespace / CellFactory Class / SetErrorTip Method
C1FlexGrid that contains the cell.
System.Windows.Controls.Border element that contains the cell content.
String that contains the error description.

In This Topic
    SetErrorTip Method
    In This Topic
    Sets an error tooltip on a cell, honoring the grid's ErrorStyle property.
    Syntax
    'Declaration
     
    
    Protected Sub SetErrorTip( _
       ByVal grid As C1FlexGrid, _
       ByVal cell As Border, _
       ByVal err As String _
    ) 
    protected void SetErrorTip( 
       C1FlexGrid grid,
       Border cell,
       string err
    )

    Parameters

    grid
    C1FlexGrid that contains the cell.
    cell
    System.Windows.Controls.Border element that contains the cell content.
    err
    String that contains the error description.
    Remarks
    The background of the error tooltip is set to the grid's ErrorStyle.BorderBrush property; the font family and size are also set to the corresponding properties in the grid's ErrorStyle property.
    See Also