Changing Table Adapter select command.

If i create the dataset using data designer, the table adapters are also created. But , i am not able to change the sql command of that table adapter at design time in my code

A workaround that i have found out is that i create a new untyped table adapter and a new untyped sql command in my code with the new command text that i want and attach this command to this new table adapter.

Is this the only way? Does .NET not allow the changing of SQL data adapter commands programmatically? I have ensured that the modifier property of the table adapter is public.

[594 byte] By [TkNeo] at [2007-12-24]
# 1

To change the select command in design time, Click tableadapter ->choose "Edit Queries in dataset designer"->choose one table adapter you want to modify-> in the right, modify the commandtext property in property window

WangChi at 2007-8-31 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 2
Read this.
vkh75 at 2007-8-31 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...