# C1.WPF.FlexGrid.CellFactory.SetErrorTip

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_FlexGrid_CellFactory_SetErrorTip_" data-uid="C1.WPF.FlexGrid.CellFactory.SetErrorTip*">SetErrorTip Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_FlexGrid_CellFactory_SetErrorTip_" data-uid="C1.WPF.FlexGrid.CellFactory.SetErrorTip*"></a>
<h4 id="C1_WPF_FlexGrid_CellFactory_SetErrorTip_C1_WPF_FlexGrid_C1FlexGrid_System_Windows_Controls_Border_System_String_" data-uid="C1.WPF.FlexGrid.CellFactory.SetErrorTip(C1.WPF.FlexGrid.C1FlexGrid,System.Windows.Controls.Border,System.String)">SetErrorTip(C1FlexGrid, Border, string)</h4>
<div class="markdown level1 summary"><p>Sets an error tooltip on a cell, honoring the grid's ErrorStyle property.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected void SetErrorTip(C1FlexGrid grid, Border cell, string err)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub SetErrorTip(grid As C1FlexGrid, cell As Border, err As String)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.WPF.FlexGrid.C1FlexGrid.html">C1FlexGrid</a></td>
      <td><span class="parametername">grid</span></td>
      <td><p><a class="xref" href="C1.WPF.FlexGrid.C1FlexGrid.html">C1FlexGrid</a> that contains the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.border">Border</a></td>
      <td><span class="parametername">cell</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.border">Border</a> element that contains the cell content.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">err</span></td>
      <td><p>String that contains the error description.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_FlexGrid_CellFactory_SetErrorTip_C1_WPF_FlexGrid_C1FlexGrid_System_Windows_Controls_Border_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>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.</p>
</div>
</div>
