
Where i need initialize parameter, for when form will open, to make it work?
Query:
SELECT id, id_work, name FROM ttz WHERE (id_work = @idwork)
I want @idwork value = textBox1.Text
I did this :
private void frmTTZ_Load(object sender, EventArgs e)
{
this.ttzTableAdapter.Fill(this.dbDataSet.ttz,Convert.ToInt32(textBox1.Text));
}
Are you using a typed DataSet which autogenerates the update statements? Your image suggests this since it contains the TableAdapters.
Then all is already there. You only have to create an instance of
ttzTableAdapterand call theGetDataor theFillmethod.or by passing a ttz-table:
MSDN:
TableAdapters– Overview