Please note that this logic only apply to first row, not the particular row which i have selected by below coding logic.
Above logic is like that if i select any row in DataGridview its displaying its value in Texboxes.Code:Private Sub DataGridView1_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick DocEntry.Text = DataGridView1.Rows(e.RowIndex).Cells("DocEntry").Value CardNameEdit.Text = DataGridView1.Rows(e.RowIndex).Cells("CardName").Value CardSerialEdit.Text = DataGridView1.Rows(e.RowIndex).Cells("CardSerialNo").Value CustName.Text = DataGridView1.Rows(e.RowIndex).Cells("CustomerName").Value Branch.Text = DataGridView1.Rows(e.RowIndex).Cells("BranchName").Value CardStatus.Text = DataGridView1.Rows(e.RowIndex).Cells("CardStatus").Value End Sub
Now what i want if i change that anytextbox value then its automatically comes to datagridview
and the Datagridrow status should be in update mode.
Regards,
AKM




Reply With Quote