Results 1 to 4 of 4

Thread: geting record form datagrid

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Posts
    29

    geting record form datagrid

    Hi,
    Is there are way to get the colums of a specific record from a datagrid to print out specific values?

  2. #2
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: geting record form datagrid

    Quote Originally Posted by saphiroth
    Hi,
    Is there are way to get the colums of a specific record from a datagrid to print out specific values?
    try this one.
    if will fetch the data in first column of your datagrid
    VB Code:
    1. Private Sub DataGrid1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGrid1.DoubleClick
    2.         MessageBox.Show(DataGrid1.Item(DataGrid1.CurrentCell.RowNumber, 0))
    3.     End Sub
    hope that helps.
    or maybe i miss the point of the question

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Posts
    29

    Re: geting record form datagrid

    Thank you for you help, it works well.

  4. #4
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: geting record form datagrid

    Quote Originally Posted by saphiroth
    Thank you for you help, it works well.
    ok edit your post and put [Resolved] or the icon green checkmark.


    happy coding

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width