SQLDataSource FilterExpression reset question

  • Thread starter Thread starter fniles
  • Start date Start date
F

fniles

I am using VS 2005 and sqldatasource.
Once I set the FilterExpression of the sqldatasource, how can I set it back
to the original sqldatasource without the FilterExpression ?
Say, I have a sqldatasource "select col1,col2 from tbl1"
When a filter button is hit, say I set sqldatasource.FilterExpression =
"col1 = 5"
After that if I want to go back to "select col1,col2 from tbl1", how can I
do that ?
Thank you.
 
I am using VS 2005 and sqldatasource.
Once I set the FilterExpression of the sqldatasource, how can I set it back
to the original sqldatasource without the FilterExpression ?
Say, I have a sqldatasource "select col1,col2 from tbl1"
When a filter button is hit, say I set sqldatasource.FilterExpression =
"col1 = 5"
After that if I want to go back to "select col1,col2 from tbl1", how can I
do that ?
Thank you.

I think it must be set to Nothing
 
Back
Top