BindingSource 讓元件彼此之間資料同步

1 篇文章 / 0 new
author
BindingSource 讓元件彼此之間資料同步
BindingSource bindingSource = new BindingSource(dataSet, tableName);
this.dataGridView1.DataSource = bindingSource;
this.textBox1.DataBindings.Add("Text", bindingSource, fieldName);
this.numericUpDown1.DataBindings.Add("Value", bindingSource, fieldName);
Free Web Hosting