17-06-22, 11:24 AM
السلام عليكم ورحمة الله
احاول استخدام هذا الكود لغرض حفظ البيانات وكن تظهر لي رسالة خطأ
Dim Row As DataRow = dt.NewRow
Row(0) = TxtCat.Text
Row(1) = TxtCatName.Text
Row(2) = Txtprofit.Text
Row(3) = TxtCatNote.Text
dt.Rows.Add(row)
cmdb = New SqlCommandBuilder(adapter)
adapter.Update(dt)
تظهر رسالة الخطا التالية
Severity Code Description Project File Line Suppression State
Error BC30456 'Row' is not a member of 'DataTable'. POSPharmacy_System G:\POSPharmacy_System\POSPharmacy_System\Catogary.vb 117 Active
Error BC30456 'Row' is not a member of 'DataTable'. POSPharmacy_System G:\POSPharmacy_System\POSPharmacy_System\Catogary.vb 114 Active
Error BC30456 'Row' is not a member of 'DataTable'. POSPharmacy_System G:\POSPharmacy_System\POSPharmacy_System\Catogary.vb 115 Active
Error BC30456 'Row' is not a member of 'DataTable'. POSPharmacy_System G:\POSPharmacy_System\POSPharmacy_System\Catogary.vb 116 Active
Error BC30456 'Row' is not a member of 'DataTable'. POSPharmacy_System G:\POSPharmacy_System\POSPharmacy_System\Catogary.vb 117 Active
Error BC30456 'Row' is not a member of 'DataTable'. POSPharmacy_System G:\POSPharmacy_System\POSPharmacy_System\Catogary.vb 114 Active
Error BC30456 'Row' is not a member of 'DataTable'. POSPharmacy_System G:\POSPharmacy_System\POSPharmacy_System\Catogary.vb 115 Active
Error BC30456 'Row' is not a member of 'DataTable'. POSPharmacy_System G:\POSPharmacy_System\POSPharmacy_System\Catogary.vb 116 Active