Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
733
Group by header format
posted

I have a wingrid that I am grouping by a date column.  I want the group by rows to show the date in short format (mm/dd/yyyy or "d").  But no matter what I do, it always displays mm/dd/yyyy 12:00:00 AM.  I tried setting this at design time and at runtime.  Maybe I am changing the wrong setting:  Here is what I tried today:

gridDate.DisplayLayout.Bands(0).SortedColumns.Add("EventTimestamp", True, True)

gridDate.DisplayLayout.Bands(0).SortedColumns("EventTimestamp").Format = "d"

and 

gridDate.DisplayLayout.Bands(0).SortedColumns.Add("EventTimestamp", True, True)

gridDate.DisplayLayout.Bands(0).SortedColumns("EventTimestamp").Format = "mm/dd/yyyy"

Parents Reply Children