我需要在哪里初始化参数,何时打开表单以使其工作?
询问:
SELECT id, id_work, name FROM ttz WHERE (id_work = @idwork)
我想要@idwork value = textBox1.Text
我这样做了:
private void frmTTZ_Load(object sender, EventArgs e)
{
this.ttzTableAdapter.Fill(this.dbDataSet.ttz,Convert.ToInt32(textBox1.Text));
}