Class GridViewHelper
Provides helper methods for RadGridView. This class is used internally.
Inheritance
Inherited Members
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 of the column. |
System. The site. |
Returns
BuildNameFromText(String, Type, IServiceProvider)
Builds the name from text.
Declaration
public static string BuildNameFromText(string text, Type componentType, IServiceProvider serviceProvider)
Parameters
System. The text. |
System. Type of the component. |
System. The service provider. |
Returns
System.
|
ClampDateTime(DateTime, GridViewTimeFilteringMode)
Clamps the date time.
Declaration
public static DateTime ClampDateTime(DateTime value, GridViewTimeFilteringMode filteringMode)
Parameters
System. The value. |
Grid The filtering mode. |
Returns
System.
|
ClampDateTime(DateTime, GridViewTimeFilteringMode, GridViewTimePrecisionMode)
Clamps the date time.
Declaration
public static DateTime ClampDateTime(DateTime value, GridViewTimeFilteringMode filteringMode, GridViewTimePrecisionMode timePrecision)
Parameters
System. The value. |
Grid The filtering mode. |
Grid The time filtering precision. Determines which time parts will be taken into acount when clamping the DateTime. |
Returns
System.
|
ContainsInnerDescriptor(PropertyDescriptorCollection, String)
Determines whether the inner descriptor is contained.
Declaration
public static bool ContainsInnerDescriptor(PropertyDescriptorCollection descriptors, string fieldName)
Parameters
System. The descriptors. |
System. Name of the field. |
Returns
System.
|
FindSubPropertyDescriptor(PropertyDescriptorCollection, String)
Finds the sub property descriptor.
Declaration
public static PropertyDescriptor FindSubPropertyDescriptor(PropertyDescriptorCollection descriptors, string fieldName)
Parameters
System. The descriptors. |
System. Name of the field. |
Returns
System.
|
GetBindingSourceNamePrefix(Object, String)
Gets the binding source name prefix.
Declaration
public static string GetBindingSourceNamePrefix(object dataSource, string dataMember)
Parameters
System. The data source. |
System. The data member. |
Returns
System.
|
GetCaption(PropertyDescriptor)
Gets the caption.
Declaration
public static string GetCaption(PropertyDescriptor descriptor)
Parameters
System. The descriptor. |
Returns
System.
|
GetDefaultFilterOperator(Type)
Gets the default filter operator.
Declaration
public static FilterOperator GetDefaultFilterOperator(Type dataType)
Parameters
System. Type of the data. |
Returns
GetSortDirection(ListSortDirection)
Gets the sort direction.
Declaration
public static RadSortOrder GetSortDirection(ListSortDirection listSortDirection)
Parameters
System. The list sort direction. |
Returns
GetTypes(Type)
Gets the all sub types.
Declaration
public static ICollection GetTypes(Type baseType)
Parameters
System. Type of the base. |
Returns
System.
|
GetUniqueName(ColumnGroupCollection, String)
Gets a unique name for an item of the unique.
Declaration
public static string GetUniqueName(ColumnGroupCollection collection, string baseName)
Parameters
Column The collection. |
System. A base name to use. |
Returns
System. 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
Grid |
System. A base name to use. |
Returns
System. 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 of the base. |
System. The type resolution service. |
Returns
System.
|
IsBindableType(Type)
Checks whether the a column can be bounded to data of this type
Declaration
public static bool IsBindableType(Type type)
Parameters
System. The type to check |
Returns
System. 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. The type. |
Returns
System.
|
IsFloatSql(Type)
Determines whether the specified type is float SQL.
Declaration
public static bool IsFloatSql(Type type)
Parameters
System. The type. |
Returns
System.
|
IsInteger(Type)
Determines whether the specified type is integer.
Declaration
public static bool IsInteger(Type type)
Parameters
System. The type. |
Returns
System.
|
IsIntegerSql(Type)
Determines whether the specified type is integer SQL.
Declaration
public static bool IsIntegerSql(Type type)
Parameters
System. The type. |
Returns
System.
|
IsNumeric(Type)
Determines whether the specified type is numeric.
Declaration
public static bool IsNumeric(Type type)
Parameters
System. The type. |
Returns
System.
|
IsSigned(Type)
Determines whether the specified type is signed.
Declaration
public static bool IsSigned(Type type)
Parameters
System. The type. |
Returns
System.
|
IsSignedSql(Type)
Determines whether the specified type is signed SQL.
Declaration
public static bool IsSignedSql(Type type)
Parameters
System. The type. |
Returns
System.
|
IsUniqueName(GridViewColumnCollection, String)
Checks whether the specified unique name exists in the specified collection.
Declaration
public static bool IsUniqueName(GridViewColumnCollection collection, string name)
Parameters
Grid The Grid |
System. A valid unique name. |
Returns
System. true if the name exists. |
IsUnsigned(Type)
Determines whether the specified type is unsigned.
Declaration
public static bool IsUnsigned(Type type)
Parameters
System. The type. |
Returns
System.
|
IsUnsignedSql(Type)
Determines whether the specified type is unsigned SQL.
Declaration
public static bool IsUnsignedSql(Type type)
Parameters
System. The type. |
Returns
System.
|
ShowErrorDialog(IUIService, Exception)
Shows the error dialog.
Declaration
public static void ShowErrorDialog(IUIService uiService, Exception ex)
Parameters
System. The UI service. |
System. The ex. |