D
dgk
I have a gridview for which the datasource at design time is a method
that returns a collections.generic.List (of MyClass). That created an
ObjectDataSource1 which is the DataSourceID for the gridview. At run
time I figured that I would just set the datasource to another List
(of MyClass) which I'm actually generating on the fly.
That works, but the GV can't be sorted because that relies on the
DataSourceID which has to be wiped when I set the DataSource of the GV
directly.
So, I tried to use the method that returns the list to really do the
work, but I can't figure out how to pass in the parameters that will
be required. I tried setting the ObjectDataSource1.SelectParameters to
what needs to be passed to the method but I can't get the syntax
right.
Any help greatly appreciated.
that returns a collections.generic.List (of MyClass). That created an
ObjectDataSource1 which is the DataSourceID for the gridview. At run
time I figured that I would just set the datasource to another List
(of MyClass) which I'm actually generating on the fly.
That works, but the GV can't be sorted because that relies on the
DataSourceID which has to be wiped when I set the DataSource of the GV
directly.
So, I tried to use the method that returns the list to really do the
work, but I can't figure out how to pass in the parameters that will
be required. I tried setting the ObjectDataSource1.SelectParameters to
what needs to be passed to the method but I can't get the syntax
right.
Any help greatly appreciated.