Jump to content
Xtreme .Net Talk

Recommended Posts

  • Leaders
Posted

well this will retrieve the value of the item you clicked on :

   Private Sub DataGrid1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DataGrid1.MouseUp
       Dim i As Integer = DataGrid1.CurrentRowIndex
       Dim j As Integer = DataGrid1.CurrentCell.ColumnNumber
       MessageBox.Show(DataGrid1.Item(i, j))
   End Sub

Posted

Thanks for the reply ,

 

I need the contents of the whole row , such that I can edit the required field in specific. And secondly if the datagrid is in masterdetails format then how could I substitute a value in a particular tables particular field.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...