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 GridViewHelper

Provides helper methods for RadGridView. This class is used internally.

Inheritance
System.Object
GridViewHelper
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.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll

Syntax

public class GridViewHelper

Constructors

GridViewHelper()

Declaration
public GridViewHelper()

Methods

AutoGenerateGridColumn(Type, ISite)

Generates automatically the grid column.

Declaration
public static GridViewDataColumn AutoGenerateGridColumn(Type columnType, ISite site)
Parameters
System.Type columnType

Type of the column.

System.ComponentModel.ISite site

The site.

Returns
GridViewDataColumn

BuildNameFromText(String, Type, IServiceProvider)

Builds the name from text.

Declaration
public static string BuildNameFromText(string text, Type componentType, IServiceProvider serviceProvider)
Parameters
System.String text

The text.

System.Type componentType

Type of the component.

System.IServiceProvider serviceProvider

The service provider.

Returns
System.String

ClampDateTime(DateTime, GridViewTimeFilteringMode)

Clamps the date time.

Declaration
public static DateTime ClampDateTime(DateTime value, GridViewTimeFilteringMode filteringMode)
Parameters
System.DateTime value

The value.

GridViewTimeFilteringMode filteringMode

The filtering mode.

Returns
System.DateTime

ClampDateTime(DateTime, GridViewTimeFilteringMode, GridViewTimePrecisionMode)

Clamps the date time.

Declaration
public static DateTime ClampDateTime(DateTime value, GridViewTimeFilteringMode filteringMode, GridViewTimePrecisionMode timePrecision)
Parameters
System.DateTime value

The value.

GridViewTimeFilteringMode filteringMode

The filtering mode.

GridViewTimePrecisionMode timePrecision

The time filtering precision. Determines which time parts will be taken into acount when clamping the DateTime.

Returns
System.DateTime

ContainsInnerDescriptor(PropertyDescriptorCollection, String)

Determines whether the inner descriptor is contained.

Declaration
public static bool ContainsInnerDescriptor(PropertyDescriptorCollection descriptors, string fieldName)
Parameters
System.ComponentModel.PropertyDescriptorCollection descriptors

The descriptors.

System.String fieldName

Name of the field.

Returns
System.Boolean

FindSubPropertyDescriptor(PropertyDescriptorCollection, String)

Finds the sub property descriptor.

Declaration
public static PropertyDescriptor FindSubPropertyDescriptor(PropertyDescriptorCollection descriptors, string fieldName)
Parameters
System.ComponentModel.PropertyDescriptorCollection descriptors

The descriptors.

System.String fieldName

Name of the field.

Returns
System.ComponentModel.PropertyDescriptor

GetBindingSourceNamePrefix(Object, String)

Gets the binding source name prefix.

Declaration
public static string GetBindingSourceNamePrefix(object dataSource, string dataMember)
Parameters
System.Object dataSource

The data source.

System.String dataMember

The data member.

Returns
System.String

GetCaption(PropertyDescriptor)

Gets the caption.

Declaration
public static string GetCaption(PropertyDescriptor descriptor)
Parameters
System.ComponentModel.PropertyDescriptor descriptor

The descriptor.

Returns
System.String

GetDefaultFilterOperator(Type)

Gets the default filter operator.

Declaration
public static FilterOperator GetDefaultFilterOperator(Type dataType)
Parameters
System.Type dataType

Type of the data.

Returns
FilterOperator

GetSortDirection(ListSortDirection)

Gets the sort direction.

Declaration
public static RadSortOrder GetSortDirection(ListSortDirection listSortDirection)
Parameters
System.ComponentModel.ListSortDirection listSortDirection

The list sort direction.

Returns
RadSortOrder

GetTypes(Type)

Gets the all sub types.

Declaration
public static ICollection GetTypes(Type baseType)
Parameters
System.Type baseType

Type of the base.

Returns
System.Collections.ICollection

GetUniqueName(ColumnGroupCollection, String)

Gets a unique name for an item of the unique.

Declaration
public static string GetUniqueName(ColumnGroupCollection collection, string baseName)
Parameters
ColumnGroupCollection collection

The collection.

System.String baseName

A base name to use.

Returns
System.String

A unique name for the collection.

GetUniqueName(GridViewColumnCollection, String)

Gets a unique name for an item of the collection.

Declaration
public static string GetUniqueName(GridViewColumnCollection collection, string baseName)
Parameters
GridViewColumnCollection collection

The GridViewColumnCollection

System.String baseName

A base name to use.

Returns
System.String

the unique name for the collection.

GetValidTypes(Type, ITypeDiscoveryService)

Gets the valid sub types.

Declaration
public static Type[] GetValidTypes(Type baseType, ITypeDiscoveryService typeResolutionService)
Parameters
System.Type baseType

Type of the base.

System.ComponentModel.Design.ITypeDiscoveryService typeResolutionService

The type resolution service.

Returns
System.Type[]

IsBindableType(Type)

Checks whether the a column can be bounded to data of this type

Declaration
public static bool IsBindableType(Type type)
Parameters
System.Type type

The type to check

Returns
System.Boolean

True if the type is bindable, false otherwise.

IsFloat(Type)

Determines whether the specified type is float.

Declaration
public static bool IsFloat(Type type)
Parameters
System.Type type

The type.

Returns
System.Boolean

IsFloatSql(Type)

Determines whether the specified type is float SQL.

Declaration
public static bool IsFloatSql(Type type)
Parameters
System.Type type

The type.

Returns
System.Boolean

IsInteger(Type)

Determines whether the specified type is integer.

Declaration
public static bool IsInteger(Type type)
Parameters
System.Type type

The type.

Returns
System.Boolean

IsIntegerSql(Type)

Determines whether the specified type is integer SQL.

Declaration
public static bool IsIntegerSql(Type type)
Parameters
System.Type type

The type.

Returns
System.Boolean

IsNumeric(Type)

Determines whether the specified type is numeric.

Declaration
public static bool IsNumeric(Type type)
Parameters
System.Type type

The type.

Returns
System.Boolean

IsSigned(Type)

Determines whether the specified type is signed.

Declaration
public static bool IsSigned(Type type)
Parameters
System.Type type

The type.

Returns
System.Boolean

IsSignedSql(Type)

Determines whether the specified type is signed SQL.

Declaration
public static bool IsSignedSql(Type type)
Parameters
System.Type type

The type.

Returns
System.Boolean

IsUniqueName(GridViewColumnCollection, String)

Checks whether the specified unique name exists in the specified collection.

Declaration
public static bool IsUniqueName(GridViewColumnCollection collection, string name)
Parameters
GridViewColumnCollection collection

The GridViewColumnCollection to look.

System.String name

A valid unique name.

Returns
System.Boolean

true if the name exists.

IsUnsigned(Type)

Determines whether the specified type is unsigned.

Declaration
public static bool IsUnsigned(Type type)
Parameters
System.Type type

The type.

Returns
System.Boolean

IsUnsignedSql(Type)

Determines whether the specified type is unsigned SQL.

Declaration
public static bool IsUnsignedSql(Type type)
Parameters
System.Type type

The type.

Returns
System.Boolean

ShowErrorDialog(IUIService, Exception)

Shows the error dialog.

Declaration
public static void ShowErrorDialog(IUIService uiService, Exception ex)
Parameters
System.Windows.Forms.Design.IUIService uiService

The UI service.

System.Exception ex

The ex.

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.