这个无所谓的,其它command对象都是系统自动生成的,如下代码所示。
private void InitializeComponent()
{    
this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlDataAdapter1 = new System.Data.SqlClient.SqlDataAdapter();
this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Button2.Click += new System.EventHandler(this.Button2_Click);
this.Button3.Click += new System.EventHandler(this.Button3_Click);
this.Button4.Click += new System.EventHandler(this.Button4_Click);
// 
// sqlDataAdapter1
// 
this.sqlDataAdapter1.DeleteCommand = this.sqlDeleteCommand1;
this.sqlDataAdapter1.InsertCommand = this.sqlInsertCommand1;
this.sqlDataAdapter1.SelectCommand = this.sqlSelectCommand1;
this.sqlDataAdapter1.UpdateCommand = this.sqlUpdateCommand1;
this.Load += new System.EventHandler(this.Page_Load); }
如果你想要DelectedCommand或者InsertCommand的话,自己添加就是了。然后在属性窗口将
sqlDataAdapter的DelectedCommand或者InsertCommand选择为相应的对象就是了。如这句this.sqlDataAdapter1.SelectCommand = this.sqlSelectCommand1;