14-05-19, 01:10 PM
السلام عليكم ورحمة الله وبركاته
وأثناء عملية البحث في محتوى الداتاقريد فيو
تضهر رسالة الخطأ التالية
row associated with the currency manager's position cannot be made invisible
مع العلم أنا أستعمل الكود التالي
وتقبل الله صيامكم وقيامكم
وأثناء عملية البحث في محتوى الداتاقريد فيو
تضهر رسالة الخطأ التالية
row associated with the currency manager's position cannot be made invisible
مع العلم أنا أستعمل الكود التالي
كود :
Private Sub Sellected()
Dim T As TextBox = TextBoxSearch
With T
.Select()
.BackColor = Color.LightCyan
End With
Dim DGV As DataGridView = DGView
With DGV
.RowsDefaultCellStyle.BackColor = Color.CadetBlue
.AlternatingRowsDefaultCellStyle.BackColor = Color.LightCyan
End With
End Sub
Private Sub TextBoxSearch_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBoxSearch.TextChanged
Try
For i As Integer = 0 To DGView.Rows.Count - 2
DGView.Rows(i).Visible = True
If DGView.Rows(i).Cells(1).Value.ToString.Contains(TextBoxSearch.Text.Trim) Then
Sellected()
DGView.Rows(i).Visible = True
Else
DGView.Rows(i).Visible = False
End If
Next
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub