fortex
یک شنبه 18 تیر 1396, 09:06 صبح
سلام دوستان وقتی میخام اطلاعات درون یک تکست باکس رو با کد زیر وارد دیتاگیرید ویو کنم:
DataGridViewRow row = new DataGridViewRow();
// create cells
row.CreateCells(this.dataGridView1, roz.Text);
// add to data grid view
this.dataGridView1.Rows.Add(row);
با پیغام زیر مواجه میشم:
Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound
DataGridViewRow row = new DataGridViewRow();
// create cells
row.CreateCells(this.dataGridView1, roz.Text);
// add to data grid view
this.dataGridView1.Rows.Add(row);
با پیغام زیر مواجه میشم:
Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound