السلام عليكم
احتاج لكود يقوم بنقل البيانات من TextBox الى DataGridView قمت بعمل الكود التالي :
DataGridView1.Rows.Add()
Dim RO = DataGridView1.Rows.Count - 1
DataGridView1.Rows(RO).Cells(0).Value = senf_name.Text
DataGridView1.Rows(RO).Cells(1).Value = price.Text
وطهر لي هدا الخطأ
No row can be added to a DataGridView control that does not have columns. Columns must be added first.
احتاج لكود يقوم بنقل البيانات من TextBox الى DataGridView قمت بعمل الكود التالي :
DataGridView1.Rows.Add()
Dim RO = DataGridView1.Rows.Count - 1
DataGridView1.Rows(RO).Cells(0).Value = senf_name.Text
DataGridView1.Rows(RO).Cells(1).Value = price.Text
وطهر لي هدا الخطأ
No row can be added to a DataGridView control that does not have columns. Columns must be added first.
