Current filter:
                                You should refresh the page.
                                0
                                  • Hey,

                                    The new Date-Time group interval is not working with Nullable(Of DateTime), it works with DateTime however.

                                    Greetings,
                                    Sigurd

                                    Steps to Reproduce:

                                    Define a field as Nullable(Of DateTime) instead of just DateTime

                                    Actual Results:

                                    No grouping interval possibility with nullable DateTime

                                    Expected Results:

                                    New Date-Time grouping interval working, even with nullable DateTime

                                0

                                Hi Sigurd,

                                Thank you for the report. GroupInterval works with the nullable(Of DateTime) fields. If you mean new FilterPopupMode, it also works. But, in this case, you should set the column's OptionsFilter.FilterPopupMode = DevExpress.XtraGrid.Columns.FilterPopupMode.DateSmart;

                                Thanks,
                                Plato

                                0

                                Hi,

                                I get different results. I have a class which has a Date defined as nullable (see code below). When I group by this column, I don't get the new datetime interval options.

                                When I make an unbound column using the expression editor (based on the nullable date) and mark the field DateTime instead of Bound, I do get the datetime interval options.

                                Greetings,
                                Sigurd

                                      <System.ComponentModel.DisplayName("SUB J_ Cre Dat")> _
                                        Public Overridable Property SUBJ_CreDat_Value As Nullable(Of DateTime)
                                               Get 'get accessor method
                                                    If SUBJ_CreDat Is Nothing Then
                                                         Return Nothing
                                           Else If SUBJ_CreDat.IsNull Then
                                           Return Nothing
                                           Else
                                           Return SUBJ_CreDat.Value
                                           End If
                                               End Get
                                               Set(ByVal value As Nullable(Of DateTime)) 'set accessor method
                                           If Not value.HasValue Then
                                           SUBJ_CreDat.IsNull = True
                                           Else
                                           SUBJ_CreDat.Value = value.Value
                                           End If
                                               End Set
                                          End Property

                                0

                                Hi Sigurd,

                                Hmm, I am afraid, your answer did not help us to determine the cause of this issue. Could you please clarify what you meant by the "new datetime interval options">

                                Thanks,
                                Plato

                                0

                                Hi,

                                Please look at the attached sample. I've also included 2 pictures showing what happens. Normal DateTime fields can be grouped using intervals, Nullable DateTimes can't.

                                Greetings,
                                Sigurd

                                DevExpressDateTimeTest.zip
                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.