How can I change the CommandText in a DataSet/TableAdapter atruntime.

  • Thread starter Thread starter forest demon
  • Start date Start date
F

forest demon

I need to change the CommandText query on the fly and then rebind to
the control in question.

Any help is appreciated.

Thanks...
 
Hello forest,

so, what are the problems?
CommandText has the setter and nothing stops your to change this property,
as I understand

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


fd> I need to change the CommandText query on the fly and then rebind to
fd> the control in question.
fd>
fd> Any help is appreciated.
fd>
fd> Thanks...
fd>
 
Hello forest,

so, what are the problems?
CommandText has the setter and nothing stops your to change this property,
as I understand

---
WBR,
Michael  Nemtsev [.NET/C# MVP] :: blog:http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

fd> I need to change the CommandText query on the fly and then rebind to
fd> the control in question.
fd>
fd> Any help is appreciated.
fd>
fd> Thanks...
fd>

i apologize, i should have posted more info. in the designer, i create
a datasource and dataset/datatable, i attach
to a control and all works as expected. so far, all of this has been
done w/o any code behind. then, during runtime,
i need to change the query and rebind, but i can't find out how to
access the commandtext property.

thanks Michael...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top