16-11-19, 07:28 PM
(آخر تعديل لهذه المشاركة : 16-11-19, 07:46 PM {2} بواسطة sofiane-phy.)
(16-11-19, 06:46 PM)asemshahen5 كتب :PHP كود :
Private Sub DataGridView1_CellClick(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellClick
DataGridView2.SelectionMode = DataGridViewSelectionMode.FullRowSelect
DataGridView2.ClearSelection()
For i = 0 To DataGridView2.Rows.Count - 1
If DataGridView1.CurrentRow.Cells(0).Value = DataGridView2.Rows(i).Cells(0).Value Then
DataGridView2.Rows(i).Selected = True
End If
Next
End Sub
جاري التجريب
(16-11-19, 07:28 PM)sofiane-phy كتب :(16-11-19, 06:46 PM)asemshahen5 كتب :PHP كود :
Private Sub DataGridView1_CellClick(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellClick
DataGridView2.SelectionMode = DataGridViewSelectionMode.FullRowSelect
DataGridView2.ClearSelection()
For i = 0 To DataGridView2.Rows.Count - 1
If DataGridView1.CurrentRow.Cells(0).Value = DataGridView2.Rows(i).Cells(0).Value Then
DataGridView2.Rows(i).Selected = True
End If
Next
End Sub
جاري التجريب
بارك الله فيك ، هل من الممكن المؤشر الموجود قبل الصف (لا تضحك علي) ايضا ينتقل مع التحديد لاحظ الصورة
