1. Listview which item is selected re-visited
- Posted by Tony Steward <figjam at NLC.NET.AU> Jan 08, 2001
- 493 views
- Last edited Jan 09, 2001
------=_NextPart_000_0007_01C079BD.30177F40 charset="iso-8859-1" Hi all, Sorry maybe im a bit slow but still can't figgerout how to know what = line in a list view the user has selected. What I need to do is create a LV with 5 columns, then load selected = fields of my EDB file into it. Which I can do. The last column holds the = Key part of the EDB. When the users selects a row I want to get the Key = from column 5, goto that record and read the rest of that record to be = displayed. Problem is I can't get the selected row and then decifer what column 5 = holds. Again sorry for harping but help please. Thanks Tony Steward Come Visit Me At www.locksdownunder.com ------=_NextPart_000_0007_01C079BD.30177F40 charset="iso-8859-1" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Sorry maybe im a bit slow but still = can't figgerout=20 how to know what line in a list view the user has selected.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>What I need to do is create a LV with 5 = columns,=20 then load selected fields of my EDB file into it. Which I can do. The = last=20 column holds the Key part of the EDB. When the users selects a row I = want to get=20 the Key from column 5, goto that record and read the rest of that record = to be=20 displayed.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Problem is I can't get the selected row = and then=20 decifer what column 5 holds.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Again sorry for harping but help=20 please.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks Tony Steward</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Come Visit Me At <A=20 ------=_NextPart_000_0007_01C079BD.30177F40--
2. Re: Listview which item is selected re-visited
- Posted by Prasanta Chakraborty <prasanta at writeme.com> Jan 09, 2001
- 465 views
Tony, I also faced the same problem and was unable to figure out how to do it as the left click was not trigerring any event. What I did was, I trapped the right click event (which was successfully trapped). If you need the code, let me know, I can send it to you. Regards, Prasanta. On Mon, 8 Jan 2001 21:51:42 +1100, Tony Steward <figjam at NLC.NET.AU> wrote: >Hi all, >Sorry maybe im a bit slow but still can't figgerout how to know what line in a list view the user has selected. >What I need to do is create a LV with 5 columns, then load selected fields of my EDB file into it. Which I can do. The last column holds the Key part of the EDB. When the users selects a row I want to get the Key from column 5, goto that record and read the rest of that record to be displayed. > >Problem is I can't get the selected row and then decifer what column 5 holds. > >Again sorry for harping but help please. > >Thanks Tony Steward > >Come Visit Me At www.locksdownunder.com > >