I am using an ObjectDataSourc e control to provide data to a GridView control.
I have "AllowPagin g" set to true for the GridView.
The Select statement for the ODS is below:
public List<AdInfoRead DistinguishedNa me(string strStartingFrom ,
string strLastDisplayN ame, int maximumRows, int startRowIndex)
The function is called but maximumRows is always set to -1 regardless of
what default value I set. I have attempted to set a default value for
maximumRows in the Parameter Collection Editor but the value I set never
appears as the value for maximumRows when the method is called.
How can I set the value for maximumRows (preferrably programmaticall y) so
the value I set will be the value used in the call to the Select statement?
Thanks,
Leslie
I have "AllowPagin g" set to true for the GridView.
The Select statement for the ODS is below:
public List<AdInfoRead DistinguishedNa me(string strStartingFrom ,
string strLastDisplayN ame, int maximumRows, int startRowIndex)
The function is called but maximumRows is always set to -1 regardless of
what default value I set. I have attempted to set a default value for
maximumRows in the Parameter Collection Editor but the value I set never
appears as the value for maximumRows when the method is called.
How can I set the value for maximumRows (preferrably programmaticall y) so
the value I set will be the value used in the call to the Select statement?
Thanks,
Leslie