amirzazadeh
پنج شنبه 20 تیر 1387, 10:12 صبح
دوستان من دوتا ديتا گريد ويو در فرم جستجو دارم كه ديتا گريد دوم از طريق اين كد با ديتاگريد ويو اول رفرش ميشه
Private Sub DGV1_RowLeave(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DGV1.RowLeave
Dim rowIndex As Integer = DGV1.Rows.Count - 1
Dim row As DataGridViewRow = DGV1.Rows(e.RowIndex + 1)
DataGridView1.Refresh()
Dim cell As DataGridViewCell
cell = row.Cells(0)
i = cell.Value
Me.SubpscTableAdapter.FillBy(TotiaDataSet.subpsc, i)
End Sub
مشكل اينه كه موقع حركت با كليد Down گريد دوم رفرش ميشه ولي وقتي باكليد UP به بالا برميگردم گريد دوم چيزي نشون نميده وكاملا خالي نشون ميده.
با تشكر
Private Sub DGV1_RowLeave(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DGV1.RowLeave
Dim rowIndex As Integer = DGV1.Rows.Count - 1
Dim row As DataGridViewRow = DGV1.Rows(e.RowIndex + 1)
DataGridView1.Refresh()
Dim cell As DataGridViewCell
cell = row.Cells(0)
i = cell.Value
Me.SubpscTableAdapter.FillBy(TotiaDataSet.subpsc, i)
End Sub
مشكل اينه كه موقع حركت با كليد Down گريد دوم رفرش ميشه ولي وقتي باكليد UP به بالا برميگردم گريد دوم چيزي نشون نميده وكاملا خالي نشون ميده.
با تشكر