A
aeden.jameson
Suppose I have a GridView displaying product information that is bound
to an ObjectDataSource. I would like to filter the data according to
criteria entered by the user. Now I have attempted to set
ObjectDataSource.FilterExpression and ObjectDataSource.FilterParameters
in the Filtering and Selecting events, but I get the wrong data. I
don't know why. It seems that only place I can set the filter and get
the right data is in ObjectDataSource.Load. The problem with that is
Page.Validate hasn't been called yet to validate the user input. Some
advice on the situation would be appreciated.
Cheers,
Aeden
to an ObjectDataSource. I would like to filter the data according to
criteria entered by the user. Now I have attempted to set
ObjectDataSource.FilterExpression and ObjectDataSource.FilterParameters
in the Filtering and Selecting events, but I get the wrong data. I
don't know why. It seems that only place I can set the filter and get
the right data is in ObjectDataSource.Load. The problem with that is
Page.Validate hasn't been called yet to validate the user input. Some
advice on the situation would be appreciated.
Cheers,
Aeden