السلام عليكم
حاولت ادراج كود لاخفاء السطور التي ضللها المستخدم على datagrid
http://data.imagup.com/9/1121621801.jpg
Try
Dim dgvRow As DataGridViewRow
For Each dgvRow In DataGridView1.SelectedRows
DataGridView1.Rows(dgvRow.Index).Visible = False
Next
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Erreure !")
End Tryلكن الكود لم يشتغل ويعطي الخطئ
--------------------------- Erreure ! --------------------------- Impossible de rendre invisible la ligne associée à la position du gestionnaire de devise. --------------------------- OK ---------------------------