Can I change sqldataAdapter.Selectcommand dynamically at run time?
You have to issue a new adapter.Fill() command to get the fresh results with the new command. Always remember the command must be executed again, as the data is not "live," but rather pulled out from the database and displayed. You have to perform a new fill and databind operation to refresh.
Dig Deeper on Win Development Resources
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.
Meet all of our Microsoft .Net Development experts
Start the conversation
0 comments