ConfigureCellDatePicker

Top  Previous  Next

Specifies the attributes of a DatePicker column for the grid in edit mode.

[Visual Basic .NET]

Public Function ConfigureCellDatePicker(ByVal SectionIndex As Integer,

                                                           ByVal ColumnIndex As Integer,

                                                           ByVal MaxDate As DateTime,

                                                           ByVal MinDate As DateTime,

                                                           ByVal Format As DateTimePickerFormat,

                                                           ByVal CustomFormat As String) As Boolean

[C#]

public bool ConfigureCellDatePicker(int SectionIndex,

                                                    int ColumnIndex,

                                                    DateTime MaxDate,

                                                    DateTime MinDate,

                                                    DateTimePickerFormat Format,

                                                    String CustomFormat);

Parameters

SectionIndex

Specifies the index (0-based) of the section in which configuring occurs. If the AllowSections is set to FALSE, this parameter becomes irrelevant. If it is set to TRUE, your code can set this parameter to -1 to let configuring take effect for all sections.

ColumnIndex

Specifies the index (0-based) of the column.

MaxDate

Specifies the maximum date of DatePicker.

MinDate

Specifies the minimum date of DatePicker.

Format

Specifies the format of DataPicker.

CustomFormat

Specifies the custom format (e.g. "yyyy-MM-dd") of DatePicker if Format is set to DateTimePickerFormat.Custom.

 

Return Value:

If the operation is successful, it returns TRUE; otherwise it returns FALSE.