About Progress

  • Company
    • Company Overview
    • Leadership
    • Corporate Social Responsibility
    • Investor Relations
    • Press Releases
    • Press Coverage
    • Recognitions
    • Progress Labs
    • Events
    • Customers
    • Careers
    • Offices
  • Technology
    • Cloud Native App Dev Platform
    • Cognitive Services
    • Web Content Management
    • UI/UX Tools
    • Secure Data Connectivity and Integration
    • Secure Managed File Transfer
    • OpenEdge
    • Network Monitoring
  • Services
    • Consulting
    • Education
    • Modernization
    • Outsourcing
  • Product Bundles

    DevCraft

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

    • Conversational UI
    • Online Training
    • Document Processing Library
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for Xamarin NativeScript OSS framework
    Desktop
    UI for WPF UI for UWP UI for WinForms
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    Debugging
    FiddlerCore
    CMS
    Sitefinity
    UX Design
    Unite UX
    Document Management
    Telerik Document Processing
    Innovations Lab
    VR DataViz
    Free Tools
    Fiddler JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Edit Profile
    • Payment Profiles
    • Renewals & Upgrades
    • Support Tickets
    • 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

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>>)

Was this article helpful?

 / 
Tell us how we can improve this article
Skip
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.