سلام دوست عزیز من روش بهتری پیشهاد می کنم تا از این همه کد نویسی خلاص شوید استفاده از دیتاست و نوشتن کوئری توسط تیبل آداپتور
خواستی ایمیل بزن تا کامل برات توضیح بدم
aliasghar.hosaini@gmail.com
ایتم عکس نمونهUntitled.jpg
ایتم نمونه کدی که نوشتم
infoPeshnhadTableAdapter.UpdateQueryPersonalAdd((i nt?) comboBox1.SelectedValue,
(int?) comboBox2.SelectedValue,
(int?) comboBox3.SelectedValue
, (int?) comboBox4.SelectedValue, AS.UserID,
radioButton1.Checked, radioButton3.Checked, richTextBox1.Text
, txtdate.Text, (int?) numericUpDownD1.Value,
(int?) numericUpDownD2.Value, (int?) numericUpDownD3.Value,
(int?) numericUpDownD4.Value,Convert.ToInt32(txtsnaseh.Te xt));