Results 1 to 3 of 3

Thread: Data Grid Values

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 1999
    Location
    Oak Creek, WI, USA
    Posts
    92

    Post

    How can I obtain the values of the variables in a datagrid? I would like to specifically obtain the values that a user selects or which the little triangle/arrow on the left column denotes. Thanks.

    casox

  2. #2
    New Member
    Join Date
    Mar 2000
    Posts
    12
    In the DataGrid1's RowColChange event, type this:
    [your variable] = DataGrid1.Text

    Getting the value of where the arrow is pointing...sorry, can't help you there.

  3. #3
    Addicted Member pardede's Avatar
    Join Date
    Jan 2000
    Posts
    232
    hkmai's code returns value of currently selected cell.

    If you want the arrow-denoted row, use the .row property, this returns the activerow, i think it's something like

    yourvar = DBgrid1.Rows(DBgrid1.Row).Value

    (the syntax might be inaccurate but i hope you get the idea)

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