25-09-18, 05:38 AM
كود :
Dim pos As Integer = Me.DgvEdit.CurrentRow.Index
Me.Textrecid.Text = DgvEdit.Rows(pos).Cells(0).Value
Me.TxtNmae.Text = DgvEdit.Rows(pos).Cells(1).Value
Me.TxtPhone1.Text = DgvEdit.Rows(pos).Cells(2).Value
Me.TxtPhone2.Text = DgvEdit.Rows(pos).Cells(3).Value
Me.TxtAdress.Text = DgvEdit.Rows(pos).Cells(4).Value
Me.TxtNotes.Text = DgvEdit.Rows(pos).Cells(5).Value
DgvEdit.Rows(pos).Cells(0).Selected = Trueالسلام عليكم
الحل بسيط اخي فقط اضف السطر الاخير كما هو موضح لك وتستطيع تغير اي خلية تريد تحديدها بتغيير قيمة 0 الى رقم الخلية المراد تحديدها اما السطر سوف يحدد السطر بعد التعديل تلقائيا
