Beispiel #1
0
        private void btnSearchProduct_Click(object sender, EventArgs e)
        {
            var selectsql = SelectSQL.SelectProduct(txtProductName.Text, txtProductCode.Text, txtRemark.Text);

            BindData.BingDataGridView(dgvProductInfo, selectsql);
            for (int i = 0; i < dgvProductInfo.Rows.Count; i++)
            {
                dgvProductInfo.Rows[i].Cells[0].Value = "修改商品";
                dgvProductInfo.Rows[i].Cells[1].Value = "删除商品";
            }
        }