Hi I have a hierarchy grid of 3 level depth. All the three details table consists of Date time column. I want set the sort expression of Date Time in descending order by default. If i set like below column is not getting sorted in descending order.
Dim
sortExpr As New GridSortExpression
sortExpr.FieldName =
PresentationConstants.DATE_LBL
sortExpr.SortOrder =
GridSortOrder.Descending
radgrdPatChronology.MasterTableView.DetailTables(0).SortExpressions.AddSortExpression(sortExpr)
In Design for Date Time column i have set the DatetimeFormat property.
DataFormatString="{0:MM/dd/yyyy}"
Where am I going wrong?
Please help me in sorting the Date Time column in hierarchy grid.