skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class DataHelper

Common helper class. Implements most of ICommonDataHelper members

Inheritance
System.Object
DataHelper
DataTableDataHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Charting
Assembly: Telerik.WinControls.RadChart.dll

Syntax

public abstract class DataHelper : ICommonDataHelper

Constructors

DataHelper()

Declaration
protected DataHelper()

Properties

ColumnNameSupported

Returns true if data source supports columns naming or false in other cases

Declaration
public abstract bool ColumnNameSupported { get; }
Property Value
System.Boolean

ColumnsCount

Returns the data source columns count

Declaration
public abstract int ColumnsCount { get; }
Property Value
System.Int32

RowsCount

Returns the data source rows count

Declaration
public abstract int RowsCount { get; }
Property Value
System.Int32

Methods

GetColumnIndex(String)

Gets the column index by column name in the Data Source object

Declaration
public abstract int GetColumnIndex(string columnName)
Parameters
System.String columnName

Column name

Returns
System.Int32

Column index if column found or -1 if column not found

Remarks

This method is not supported by all data sources

GetColumnName(Int32)

Gets the column name if it is supported by data source

Declaration
public abstract string GetColumnName(int columnIndex)
Parameters
System.Int32 columnIndex

Column index

Returns
System.String

Column name if supported by a data source

GetDoubleValue(Int32, Int32)

Return the double value at the given row and column

Declaration
public double GetDoubleValue(int rowIndex, int columnIndex)
Parameters
System.Int32 rowIndex

Row position index

System.Int32 columnIndex

Column index

Returns
System.Double

Double value at given column and row

GetFilteredColumn(Int32)

Return unique column's content

Declaration
public object[] GetFilteredColumn(int columnIndex)
Parameters
System.Int32 columnIndex

Column index

Returns
System.Object[]

Objects array with unique column values

GetGanttValuesColumns()

Returns all possible data source columns that could be used as Gantt series items

Declaration
public int[] GetGanttValuesColumns()
Returns
System.Int32[]

Data source columns array available for a Gantt series data binding

GetGroupsColumnIndex()

Returns possible groups column used for automatic data binding

Declaration
public int GetGroupsColumnIndex()
Returns
System.Int32

Automatically found possible column with repeating values for a data grouping

Remarks

Only the first found numeric column will be checked. If such column is not found or does not contain repeatable values the -1 will be returned

GetLabelsColumnIndex(Int32)

Returns possible column used as labels source when group column present

Declaration
public int GetLabelsColumnIndex(int groupColumn)
Parameters
System.Int32 groupColumn

DataGroupColumn index in a data source

Returns
System.Int32

Column index that can be used as a series item labels source

GetObjectValue(Int32, Int32)

Return the object value at the given row and column

Declaration
public abstract object GetObjectValue(int rowIndex, int columnIndex)
Parameters
System.Int32 rowIndex

Row position index

System.Int32 columnIndex

Column index

Returns
System.Object

Object value at given column and row from data source

GetSortedAndFilteredColumn(Int32)

Return sorted unique column's content

Declaration
public object[] GetSortedAndFilteredColumn(int columnIndex)
Parameters
System.Int32 columnIndex

Column index

Returns
System.Object[]

Objects array with unique column values sorted ascending

GetStringValue(Int32, Int32)

Return the string value at the given row and column

Declaration
public string GetStringValue(int rowIndex, int columnIndex)
Parameters
System.Int32 rowIndex

Row position index

System.Int32 columnIndex

Column index

Returns
System.String

String value at given column and row of a data source

GetValuesXColumnIndex()

Gets possible series items X values column

Declaration
public int GetValuesXColumnIndex()
Returns
System.Int32

Possible series items X values column's index or -1 if no proper column found

GetValuesYColumnIndex()

Gets possible series items Y values column

Declaration
public int GetValuesYColumnIndex()
Returns
System.Int32

Possible series items Y values column's index or -1 if no proper column found

GetValuesYColumns()

Returns all possible series items Y values columns

Declaration
public int[] GetValuesYColumns()
Returns
System.Int32[]

Possible numeric columns array available for a data binding

IsColumnNumeric(Int32)

Returns true if given column contains numeric values

Declaration
public abstract bool IsColumnNumeric(int columnIndex)
Parameters
System.Int32 columnIndex

Column index

Returns
System.Boolean

True if data source column contains numeric values

IsColumnString(Int32)

Returns true if given column contains string type values

Declaration
public abstract bool IsColumnString(int columnIndex)
Parameters
System.Int32 columnIndex

Column index

Returns
System.Boolean

True if data source column contains string values

IsItemNumeric(Int32, Int32)

Returns true if value at the given position is numeric

Declaration
public bool IsItemNumeric(int rowIndex, int columnIndex)
Parameters
System.Int32 rowIndex

Row position index of data item in a data source

System.Int32 columnIndex

Column index of data item in a data source

Returns
System.Boolean

True if data item contains numeric value at given row and column

IsNullableType(Type)

Checks is given type is Nullable

Declaration
protected static bool IsNullableType(Type type)
Parameters
System.Type type

Type to check

Returns
System.Boolean

True if type is Nullable, or False

IsTypeNumeric(Type)

Checks whether the type given is numeric

Declaration
protected static bool IsTypeNumeric(Type type)
Parameters
System.Type type

Type to check

Returns
System.Boolean

True if Type is numeric

IsTypeString(Type)

Checks whether the type given is string type

Declaration
protected static bool IsTypeString(Type type)
Parameters
System.Type type

Type to check

Returns
System.Boolean

True if given type is string

IsValueString(Object)

Checks whether the value's type is String

Declaration
protected static bool IsValueString(object obj)
Parameters
System.Object obj

Object to check

Returns
System.Boolean

True if object can be converted to string

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.