GridSortExpression
sortExp = new GridSortExpression();
sortExp.FieldName = "ScheduledArrivalTime";
sortExp.SortOrder = GridSortOrder.Ascending;
RadGrid1.MasterTableView.SortExpressions.AddSortExpression(sortExp);
boundColumn = new GridDateTimeColumn();
RadGrid1.MasterTableView.Columns.Add(boundColumn);
boundColumn.DataField = "ScheduledArrivalTime";
boundColumn.HeaderText = "Scheduled Arrival Time";
It appears it is sorting on the column but numerically, not by date. For example, these 3 dates, 6/6/2008, 6/10/2008, 6/11/2008, sort ascending as 6/10/2008, 6/11/2008, 6/6/2008.
What's wrong in the code above? Do I need to use the DataType property? If so, how is it set programtically? DataType = System.DateTime gives a build error.
Thanks
Jonathan