This is a migrated thread and some comments may be shown as answers.

grouping by date

2 Answers 103 Views
GridView
This is a migrated thread and some comments may be shown as answers.
lina fetisova
Top achievements
Rank 1
lina fetisova asked on 28 May 2010, 07:04 AM
I have  GridView with two columns:

<telerikGridView:GridViewDataColumn  IsReadOnly="True" UniqueName="DtEvent" Header="Date" DataFormatString="{}{0:dd/MM/yyyy}" Width="auto" MaxWidth="200" />
                <telerikGridView:GridViewDataColumn  IsReadOnly="True" UniqueName="DtEvent" Header="Time" DataFormatString="{}{0:HH:mm}" Width="auto" MaxWidth="200" />

I want to group the grid by column Header="Date" DataFormatString="{}{0:dd/MM/yyyy}"
but because of the full content of column is a full date & time of event  (but we see only date because of formatting DataFormatString="{}{0:dd/MM/yyyy}"), GridView group everything by full date - for example, if I see 10.05.2010 in two columns, but in one the full content is 10.05.2010 12:00:34, in enother - 10.05.2010 13:45:34, gridview recognize this two colimns like different =(
what can I do
to make them the same?

                

2 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 28 May 2010, 07:28 AM
Hi lina fetisova,

If you change the binding to 

<telerik:GridViewDataColumn DataMemberBinding="{Binding DtEvent.Date}"/>

the time portion of the DateTime will be ignored.


All the best,
Milan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
lina fetisova
Top achievements
Rank 1
answered on 31 May 2010, 03:39 AM
oh, thank you very much, it works fine!
Tags
GridView
Asked by
lina fetisova
Top achievements
Rank 1
Answers by
Milan
Telerik team
lina fetisova
Top achievements
Rank 1
Share this question
or