WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridTimeSpanColumn

    Show / Hide Table of Contents

    Class GridTimeSpanColumn

    Represents a column that displays the time span values in its cell content.

    Inheritance
    System.Object
    SfGridColumnBase<SfGridBase>
    GridColumnBase
    GridColumn
    GridTextColumnBase
    GridTimeSpanColumn
    Implements
    System.IDisposable
    INotifyDependencyPropertyChanged
    IFilterDefinition
    Inherited Members
    GridTextColumnBase.TextTrimmingProperty
    GridTextColumnBase.TextWrappingProperty
    GridTextColumnBase.TextDecorationsProperty
    GridTextColumnBase.TextTrimming
    GridTextColumnBase.TextWrapping
    GridTextColumnBase.TextDecorations
    GridColumn.FilterRowCellStyleProperty
    GridColumn.UseBindingValueProperty
    GridColumn.ColumnSizerProperty
    GridColumn.AllowDraggingProperty
    GridColumn.AllowGroupingProperty
    GridColumn.AllowResizingProperty
    GridColumn.AllowFilteringProperty
    GridColumn.ImmediateUpdateColumnFilterProperty
    GridColumn.FilterRowOptionsVisibilityProperty
    GridColumn.FilterRowConditionProperty
    GridColumn.FilterPopupStyleProperty
    GridColumn.FilterPopupTemplateProperty
    GridColumn.AllowBlankFiltersProperty
    GridColumn.FilterRowTextProperty
    GridColumn.IsCaseSensitiveFilterRowProperty
    GridColumn.GroupModeProperty
    GridColumn.SortModeProperty
    GridColumn.OnCellTemplateSelectorChanged(DependencyPropertyChangedEventArgs)
    GridColumn.OnCellTemplateChanged(DependencyPropertyChangedEventArgs)
    GridColumn.Dispose(Boolean)
    GridColumn.GetRowFilterType()
    GridColumn.GetFilterRowOptionsVisibility()
    GridColumn.SetCellType(String)
    GridColumn.CanFocus()
    GridColumn.IsHiddenColumn()
    GridColumn.CanEditCell(Int32)
    GridColumn.CreateInstanceCore()
    GridColumn.CanEndEditColumn()
    GridColumn.SetFilterRowText(String)
    GridColumn.OnDependencyPropertyChanged(String, DependencyPropertyChangedEventArgs)
    GridColumn.ColumnMemberType
    GridColumn.FilterRowCellStyle
    GridColumn.UseBindingValue
    GridColumn.ColumnSizer
    GridColumn.AllowDragging
    GridColumn.AllowGrouping
    GridColumn.AllowResizing
    GridColumn.AllowFiltering
    GridColumn.ImmediateUpdateColumnFilter
    GridColumn.FilterRowOptionsVisibility
    GridColumn.FilterRowCondition
    GridColumn.FilterPopupStyle
    GridColumn.FilterPopupTemplate
    GridColumn.AllowBlankFilters
    GridColumn.FilterRowText
    GridColumn.IsCaseSensitiveFilterRow
    GridColumn.GroupMode
    GridColumn.SortMode
    GridColumn.CellType
    GridColumn.FilteredFrom
    GridColumn.DataGrid
    GridColumn.FilterPredicates
    GridColumn.FilterBehavior
    GridColumn.ColumnFilter
    GridColumn.FilterRowEditorType
    GridColumnBase.ActualWidthProperty
    GridColumnBase.MappingNameProperty
    GridColumnBase.HeaderTextProperty
    GridColumnBase.AllowEditingProperty
    GridColumnBase.IsReadOnlyProperty
    GridColumnBase.GridValidationModeProperty
    GridColumnBase.UpdateTriggerProperty
    GridColumnBase.PaddingProperty
    GridColumnBase.AllowFocusProperty
    GridColumnBase.HeaderTemplateProperty
    GridColumnBase.CellTemplateProperty
    GridColumnBase.SetCellBoundValueProperty
    GridColumnBase.CellTemplateSelectorProperty
    GridColumnBase.CellStyleProperty
    GridColumnBase.CellStyleSelectorProperty
    GridColumnBase.HeaderStyleProperty
    GridColumnBase.AllowSortingProperty
    GridColumnBase.VerticalAlignmentProperty
    GridColumnBase.TextAlignmentProperty
    GridColumnBase.HorizontalHeaderContentAlignmentProperty
    GridColumnBase.WidthProperty
    GridColumnBase.IsHiddenProperty
    GridColumnBase.MaximumWidthProperty
    GridColumnBase.MinimumWidthProperty
    GridColumnBase.ShowHeaderToolTipProperty
    GridColumnBase.ToolTipTemplateProperty
    GridColumnBase.HeaderToolTipTemplateProperty
    GridColumnBase.ToolTipTemplateSelectorProperty
    GridColumnBase.ShowToolTipProperty
    GridColumnBase.SetCellBoundToolTipProperty
    GridColumnBase.OnUpdateBindingInfo(DependencyObject, DependencyPropertyChangedEventArgs)
    GridColumnBase.SetValueBindingConverter()
    GridColumnBase.CanEditCell()
    GridColumnBase.UpdateBindingForValidation(GridValidationMode)
    GridColumnBase.GetTypeface(GridColumnBase, GridCell)
    GridColumnBase.IsAutoGenerated
    GridColumnBase.IsTemplate
    GridColumnBase.ActualWidth
    GridColumnBase.MappingName
    GridColumnBase.HeaderText
    GridColumnBase.AllowEditing
    GridColumnBase.IsReadOnly
    GridColumnBase.GridValidationMode
    GridColumnBase.UpdateTrigger
    GridColumnBase.Padding
    GridColumnBase.AllowFocus
    GridColumnBase.HeaderTemplate
    GridColumnBase.CellTemplate
    GridColumnBase.SetCellBoundValue
    GridColumnBase.CellTemplateSelector
    GridColumnBase.CellStyle
    GridColumnBase.CellStyleSelector
    GridColumnBase.HeaderStyle
    GridColumnBase.AllowSorting
    GridColumnBase.VerticalAlignment
    GridColumnBase.TextAlignment
    GridColumnBase.HorizontalHeaderContentAlignment
    GridColumnBase.Width
    GridColumnBase.IsHidden
    GridColumnBase.MaximumWidth
    GridColumnBase.MinimumWidth
    GridColumnBase.ValueBinding
    GridColumnBase.DisplayBinding
    GridColumnBase.ShowHeaderToolTip
    GridColumnBase.ToolTipTemplate
    GridColumnBase.HeaderToolTipTemplate
    GridColumnBase.ToolTipTemplateSelector
    GridColumnBase.ShowToolTip
    GridColumnBase.SetCellBoundToolTip
    SfGridColumnBase<SfGridBase>.Dispose()
    Namespace: Syncfusion.UI.Xaml.Grid
    Assembly: Syncfusion.SfGrid.WPF.dll
    Syntax
    public class GridTimeSpanColumn : GridTextColumnBase, IDisposable, INotifyDependencyPropertyChanged, IFilterDefinition

    Constructors

    GridTimeSpanColumn()

    Initializes a new instance of the GridTimeSpanColumn class.

    Declaration
    public GridTimeSpanColumn()

    Fields

    AllowNullProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridTimeSpanColumn.AllowNull dependency property.

    Declaration
    public static readonly DependencyProperty AllowNullProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridTimeSpanColumn.AllowNull dependency property.

    AllowScrollingOnCircleProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridTimeSpanColumn.AllowScrollingOnCircle dependency property.

    Declaration
    public static readonly DependencyProperty AllowScrollingOnCircleProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridTimeSpanColumn.AllowScrollingOnCircle dependency property.

    FormatProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridTimeSpanColumn.Format dependency property.

    Declaration
    public static readonly DependencyProperty FormatProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridTimeSpanColumn.Format dependency property.

    MaxValueProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridTimeSpanColumn.MaxValue dependency property.

    Declaration
    public static readonly DependencyProperty MaxValueProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridTimeSpanColumn.MaxValue dependency property.

    MinValueProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridTimeSpanColumn.MinValue dependency property.

    Declaration
    public static readonly DependencyProperty MinValueProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridTimeSpanColumn.MinValue dependency property.

    NullTextProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridTimeSpanColumn.NullText dependency property.

    Declaration
    public static readonly DependencyProperty NullTextProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridTimeSpanColumn.NullText dependency property.

    ShowArrowButtonsProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridTimeSpanColumn.ShowArrowButtons dependency property.

    Declaration
    public static readonly DependencyProperty ShowArrowButtonsProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridTimeSpanColumn.ShowArrowButtons dependency property.

    Properties

    AllowNull

    Gets or sets a value that indicates whether the null values are allowed in GridTimeSpanColumn.

    Declaration
    public bool AllowNull { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the null values are allowed ; otherwise , false . The default value is false.

    AllowScrollingOnCircle

    Gets or sets a value that indicates whether the user can change the cell values using mouse wheel or up and down arrow key.

    Declaration
    public bool AllowScrollingOnCircle { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the cell value is changed using the mouse wheel or up and down arrow key; otherwise , false. The default value is true.

    Format

    Gets or sets a string that specifies to format the time span value.

    Declaration
    public string Format { get; set; }
    Property Value
    Type Description
    System.String

    A string that specifies the format the time span value. The default format is ""d:h:m:s".

    MaxValue

    Gets or sets the maximum value allowed for GridTimeSpanColumn.

    Declaration
    public TimeSpan MaxValue { get; set; }
    Property Value
    Type Description
    System.TimeSpan

    A System.TimeSpan representing the maximum time span value for GridTimeSpanColumn.

    MinValue

    Gets or sets the minimum value allowed for GridTimeSpanColumn.

    Declaration
    public TimeSpan MinValue { get; set; }
    Property Value
    Type Description
    System.TimeSpan

    A System.TimeSpan representing the minimum time span value for GridTimeSpanColumn.

    NullText

    Gets or sets a string that is displayed instead of null value if the cell contains null value.

    Declaration
    public string NullText { get; set; }
    Property Value
    Type Description
    System.String

    A string that is displayed instead of null value in the cell.

    Remarks

    The NullText is applied ,when the AllowNull property is enabled.

    ShowArrowButtons

    Gets or sets a value that indicates whether to show the arrow button control.

    Declaration
    public bool ShowArrowButtons { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the arrow button is used to adjust the time span value ; otherwise , false. The default value is true.

    Methods

    CanAllowSpinOnMouseScroll()

    Determines whether the cell value is rotated using mouse wheel or up and down arrow key is pressed.

    Declaration
    protected override bool CanAllowSpinOnMouseScroll()
    Returns
    Type Description
    System.Boolean

    Returns true if the cell value can be rotated using mouse wheel or up and down arrow key; otherwise false .

    Overrides
    GridColumn.CanAllowSpinOnMouseScroll()

    SetDisplayBindingConverter()

    Sets the converter for the of column.

    Declaration
    protected override void SetDisplayBindingConverter()
    Overrides
    GridTextColumnBase.SetDisplayBindingConverter()
    Remarks

    You can override this method to specify the converter for .

    UpdateBindingBasedOnAllowEditing()

    Updates the binding for the AllowEdit property changes in the GridTimeSpanColumn.

    Declaration
    protected override void UpdateBindingBasedOnAllowEditing()
    Overrides
    GridColumn.UpdateBindingBasedOnAllowEditing()

    Implements

    System.IDisposable
    INotifyDependencyPropertyChanged
    IFilterDefinition
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved