Version

Please note that this control has been retired and is now obsolete to the XamDataGrid control, and as such, we recommend migrating to that control. It will not be receiving any new features, bug fixes, or support going forward. For help or questions on migrating your codebase to the XamDataGrid, please contact support.

DateTime Columns

Topic Overview

Purpose

This topic describes how DateTime data can be displayed in the xamGrid™ control.

Required background

The following table lists the topics required as a prerequisite to understanding this topic.

Topic Purpose

This topic describes the xamGrid column types based on the property’s data type in the underlying data source.

This topic describes how you implement data binding in the xamGrid control.

In this topic

This topic contains the following sections:

DateTime Columns in xamGrid Control

Introduction

The DateTime values in the xamGrid control are represented by the DateColumn and the DateTimeColumn types. They are explained in the blocks that follow.

DateTime Columns overview

Additional details about the column types are available after the following summary table.

Column type Description

Displays dates using the Microsoft {Platform} DatePicker control. You can determine the format of the date by setting the SelectedDateFormat property to Long or Short.

Displays dates using the xamDateTimeInput control. You can determine the format of the date by setting the SelectedDateMask property to a specific mask.

More information about valid masks that are accepted can be found in the Mask topic.

DateColumn

This is a platform specific column type. The DateTime value in the column is displayed with the Microsoft WPF DatePicker control in WPF xamGrid application.

DateTime Columns 1.png

DateTimeColumn

The DateTimeColumn can be used WPF xamGrid applications. The xamDataTimeInput control is used to display the DateTime values in this column.

The user input is restricted just to a valid date and time format. This column provides a text box for the end-user input and a drop-down calendar to choose a date. Various masks can be applied to format the DateTime values display.

DateTime Columns 2.png

Related Content

Topics

The following topics provide additional information related to this topic.

Topic Purpose

This topic describes how a column layout can be modified

This topic describes how a column width can be configured

This topic describes how you can override settings of xamGrid by using settings on the column layout level or column level

This topic describes how you can set the alignment of the Column header’s text