تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[سؤال] تمرير بيانات من TextBoxes الى DataGridView فارغة
#4
(18-04-17, 03:54 PM)جميل علي كتب :
PHP كود :
DataGridView1.Rows.Add()
 
       Dim RO DataGridView1.Rows.Count 1
        DataGridView1
.Rows(RO).Cells(0).Value TextBox1.Text
        DataGridView1
.Rows(RO).Cells(1).Value TextBox2.Text 

اتمنى ان اكون فهمت طلبك بشكل صحيح
بالتوفيق ان شكرا اخي على الرد جربت الكود ولم يعمل معي طلعتلي مسج الخطأ هده :
No row can be added to a DataGridView control that does not have columns. Columns must be added first.

(18-04-17, 03:54 PM)جميل علي كتب :
PHP كود :
DataGridView1.Rows.Add()
 
       Dim RO DataGridView1.Rows.Count 1
        DataGridView1
.Rows(RO).Cells(0).Value TextBox1.Text
        DataGridView1
.Rows(RO).Cells(1).Value TextBox2.Text 


إقتباس :شكرا اخي على الرد جربت الكود ولم يعمل معي طلعتلي مسج الخطأ هده :
No row can be added to a DataGridView control that does not have columns. Columns must be added first.
الرد }}}
تم الشكر بواسطة:


الردود في هذا الموضوع
RE: تمرير بيانات من TextBoxes الى DataGridView فارغة - بواسطة diab4diab - 19-04-17, 07:26 PM


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم