|
-
Apr 27th, 2005, 04:55 AM
#1
Thread Starter
Member
[RESOLVED] Which entry from a Datagrid was selected ??
Hi,
How can I know, which line from a datagrid was selected by a user ?
My idea is the following: to have a Datagrid containing a Customer_id and Name fields. Once the user select the row from the Datagrid, I need to know which customer was selected and then pass that valued to another variable.
Would appreciate your help.
Thanks,
Joao.
Last edited by jfortes; Apr 27th, 2005 at 04:34 PM.
Reason: RESOLVED
-
Apr 27th, 2005, 05:00 AM
#2
Re: Which entry from a Datagrid was selected ??
 Originally Posted by jfortes
Hi,
How can I know, which line from a datagrid was selected by a user ?
My idea is the following: to have a Datagrid containing a Customer_id and Name fields. Once the user select the row from the Datagrid, I need to know which customer was selected and then pass that valued to another variable.
Would appreciate your help.
Thanks,
Joao.
VB Code:
'in the datagrid click event
messagebox.show(datagrid1.item(datagrid1.currentcell.rownumber,0)) 'it gets the first column value of your datagrid.
-
Apr 27th, 2005, 04:33 PM
#3
Thread Starter
Member
Re: Which entry from a Datagrid was selected ??
hi thanks, your suggestion works just fine.
Joao
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|