06-12-20, 11:27 PM
(06-12-20, 09:10 PM)aldery كتب : نفس كود جلب البيانات الذي تستعمله فقط قم بحذف الأصناف الزائدة منه و أترك الذي تحتاجه إذا كنت تريد كود أو تفصيل أكثر أرجو الرد
Sub fill2()
dt.Clear()
DataGridView1.Rows.Clear()
Query = "select * from Table_Items "
da = New SqlDataAdapter(Query, Module1.con)
da.Fill(dt)
For i As Integer = 0 To dt.Rows.Count - 1
DataGridView1.Rows.Add()
DataGridView1.Rows(i).Cells(0).Value = i + 1
DataGridView1.Rows(i).Cells(1).Value = dt.Rows(i)(1)
DataGridView1.Rows(i).Cells(2).Value = dt.Rows(i)(2)
DataGridView1.Rows(i).Cells(3).Value = dt.Rows(i)(3)
DataGridView1.Rows(i).Cells(4).Value = dt.Rows(i)(4)
Next
End Sub
هدا هو كود جلب البيانات ماذا افعل بعدها

