S
SJL
I have a GridView (ASP.NET 2.0 + SQL Sever 2005) control that is bound to an
Object Data Source (ODS). The ODS has a SelectParameter for the sort
expression. The SelectParameter has a DefaultValue defined, however when the
page intitially loads, that DefaultValue is not passed to my SelectMethod. I
have sorting enabled, so when I do subsequent sorts on the GridView, the
pSortExpression value is passed and sorting works, but for some reason, the
default value is never used.
I can explicitly set it in the page load calling the GridView.Sort method,
but I don't see why I should have to. Any ideas why the DefaultValue of my
SelectParameters don't work?
Thanks,
SJL
Object Data Source (ODS). The ODS has a SelectParameter for the sort
expression. The SelectParameter has a DefaultValue defined, however when the
page intitially loads, that DefaultValue is not passed to my SelectMethod. I
have sorting enabled, so when I do subsequent sorts on the GridView, the
pSortExpression value is passed and sorting works, but for some reason, the
default value is never used.
I can explicitly set it in the page load calling the GridView.Sort method,
but I don't see why I should have to. Any ideas why the DefaultValue of my
SelectParameters don't work?
Thanks,
SJL