20-08-20, 12:30 PM
(آخر تعديل لهذه المشاركة : 20-08-20, 12:35 PM {2} بواسطة asemshahen5.)
نقل كل الصفوف :
نقل الصفوف المحددة في عامود تشك بوكس رقم 2 :
1- Column1 Type TextBox
2- Column2 Type TextBox
3- Column3 Type CheckBox
اعمدة الجدول الثاني :
1- Column1 Type TextBox
2- Column2 Type TextBox
PHP كود :
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
For i As Integer = 1 To DataGridView1.Rows.Count - 1
DataGridView2.Rows.Add(DataGridView1.Rows(i).Cells(0).Value, DataGridView1.Rows(i).Cells(1).Value)
Next
End Sub
نقل الصفوف المحددة في عامود تشك بوكس رقم 2 :
PHP كود :
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
For i As Integer = 1 To DataGridView1.Rows.Count - 1
If DataGridView1.Rows(i).Cells(2).Value = True Then
DataGridView2.Rows.Add(DataGridView1.Rows(i).Cells(0).Value, DataGridView1.Rows(i).Cells(1).Value)
End If
Next
End Sub
1- Column1 Type TextBox
2- Column2 Type TextBox
3- Column3 Type CheckBox
اعمدة الجدول الثاني :
1- Column1 Type TextBox
2- Column2 Type TextBox
سبحان الله وبحمده سبحان الله العظيم و الحمد لله ولا اله الا الله والله اكبر
