# GrapeCity.Wpf.SpreadSheet.DataFieldConverter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Wpf_SpreadSheet_DataFieldConverter" data-uid="GrapeCity.Wpf.SpreadSheet.DataFieldConverter" class="text-break">DataFieldConverter Class
</h1>
  <div class="markdown level0 summary"><p>Provides a type converter to convert <a class="xref" href="GrapeCity.Wpf.SpreadSheet.DataField.html">DataField</a> objects to and from various other representations.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.typeconverter">TypeConverter</a></div>
    <div class="level2"><span class="xref">DataFieldConverter</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Wpf.SpreadSheet.html">GrapeCity.Wpf.SpreadSheet</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Wpf.SpreadSheet.dll</h6>
  <h5 id="GrapeCity_Wpf_SpreadSheet_DataFieldConverter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DataFieldConverter : TypeConverter</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DataFieldConverter
    Inherits TypeConverter</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_DataFieldConverter__ctor" data-uid="GrapeCity.Wpf.SpreadSheet.DataFieldConverter.#ctor">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.DataFieldConverter.-ctor.html#GrapeCity_Wpf_SpreadSheet_DataFieldConverter__ctor">DataFieldConverter()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_DataFieldConverter_CanConvertFrom_System_ComponentModel_ITypeDescriptorContext_System_Type_" data-uid="GrapeCity.Wpf.SpreadSheet.DataFieldConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Type)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.DataFieldConverter.CanConvertFrom.html#GrapeCity_Wpf_SpreadSheet_DataFieldConverter_CanConvertFrom_System_ComponentModel_ITypeDescriptorContext_System_Type_">CanConvertFrom(ITypeDescriptorContext, Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether this converter can convert an object in the given source type
to a <a class="xref" href="GrapeCity.Wpf.SpreadSheet.DataField.html">DataField</a> object using the specified context.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_DataFieldConverter_CanConvertTo_System_ComponentModel_ITypeDescriptorContext_System_Type_" data-uid="GrapeCity.Wpf.SpreadSheet.DataFieldConverter.CanConvertTo(System.ComponentModel.ITypeDescriptorContext,System.Type)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.DataFieldConverter.CanConvertTo.html#GrapeCity_Wpf_SpreadSheet_DataFieldConverter_CanConvertTo_System_ComponentModel_ITypeDescriptorContext_System_Type_">CanConvertTo(ITypeDescriptorContext, Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns whether this converter can convert the object to the specified type, using the specified context.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_DataFieldConverter_ConvertFrom_System_ComponentModel_ITypeDescriptorContext_System_Globalization_CultureInfo_System_Object_" data-uid="GrapeCity.Wpf.SpreadSheet.DataFieldConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.DataFieldConverter.ConvertFrom.html#GrapeCity_Wpf_SpreadSheet_DataFieldConverter_ConvertFrom_System_ComponentModel_ITypeDescriptorContext_System_Globalization_CultureInfo_System_Object_">ConvertFrom(ITypeDescriptorContext, CultureInfo, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the given object to the type of this converter, using the specified context and culture information.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_DataFieldConverter_ConvertTo_System_ComponentModel_ITypeDescriptorContext_System_Globalization_CultureInfo_System_Object_System_Type_" data-uid="GrapeCity.Wpf.SpreadSheet.DataFieldConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object,System.Type)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.DataFieldConverter.ConvertTo.html#GrapeCity_Wpf_SpreadSheet_DataFieldConverter_ConvertTo_System_ComponentModel_ITypeDescriptorContext_System_Globalization_CultureInfo_System_Object_System_Type_">ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the given value object to the specified type, using the specified context and culture information.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
