我现在想右键DATAGIRDVIEW出现个新增点下就出来1行然后在这行上填加值
填加完毕后 按按妞保存入数据库~~~
            SqlConnection con = new SqlConnection("server=192.168.0.14;uid=sa;pwd=Newlife6686;database=MIS_SHQY");
            SqlDataAdapter da = new SqlDataAdapter("select T_Id as '编号',T_Number as '物料编号',T_Name as '所属物品',T_Quantity as '数量',T_Model as '物料名称',T_DepotName as '1=成品库,2=部件库,3=零件库',T_SupplierName as '供应商名称',T_Re as '备注',T_Principal as '制表人',T_date as '制表日期' from T_Purchasing where T_Choose=" + 1 + " and T_people= dbo.GetUserName(7)", con);
            DataSet ds = new DataSet();
            da.Fill(ds, "T_Purchasing");
            this.dataGridView2.DataSource = ds.Tables["T_Purchasing"];            //保存(包括增删改。这是批处理。)
            SqlCommandBuilder sb = new SqlCommandBuilder(da);
            da.Update(ds.Tables["T_Purchasing"]); 改如何实现呢最好能贴点代码