Hello friends.
that's gr88 that you people help out alot. My senerio is .. i made data grid form ..where i want ... when i double click on a Invoice no ... or Row in datagrid .. invoice open in new form where i can edit delete, or other opraitons with invoice..
.
i know how to edit in same form ... through .. SelectedRows .. method
.
Private Sub DataGridView1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGridView1.DoubleClick
Dim obj As DataGridViewSelectedRowCollection = DataGridView1.SelectedRows
txtHotelId.Text = obj.Item(0).Cells(0).Value
txtHotelName.Text = obj.Item(0).Cells(1).Value
txtContactPerson.Text = obj.Item(0).Cells(2).Value
txtLocation.Text = obj.Item(0).Cells(3).Value
txtPhone.Text = obj.Item(0).Cells(4).Value
TxtFax.Text = obj.Item(0).Cells(5).Value
txtEmail.Text = obj.Item(0).Cells(6).Value
txtAddress.Text = obj.Item(0).Cells(7).Value
End Sub