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

GridGroupByField by small date

2 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michał Nikołajuk
Top achievements
Rank 2
Michał Nikołajuk asked on 21 Dec 2008, 11:00 PM
Hello
I use a RadGrid and I actived grouping. In Source with bind the RadGrid I have full date (format: DD:MM:YYYY:HH:MM:SS).
Result is such I have group for one Item.
I will have group by DD:MM:YYYY. One groups is have item for one day.
Can you hell mi ??

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Dec 2008, 06:59 AM
Hi Michal,

I hope you are trying to Group by the Date and not by Date and Time. Here is a forum link which dicusses a similar scenario.
Group on DateTime Column

Shinu
0
Michał Nikołajuk
Top achievements
Rank 2
answered on 22 Dec 2008, 07:23 AM
Thanks,
Yes It is similary scenario but I bind data in codebehind. I'm useing LINQ to Entity. I create query (big query ;)) and result bind to DataGrid.

var query = from c in context ....
RadGrid.DataSource = var;
RadGrid.DataBind();

Metod uses post above It occurs to mi is this metod little effective.
Is the exist another metod ??
Tags
Grid
Asked by
Michał Nikołajuk
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Michał Nikołajuk
Top achievements
Rank 2
Share this question
or