On Friday 09 May 2014 16:51:46 misu kun wrote:
> it doesn't work .
>
> i put the code in tstringgrid onSelectionchanged , but nothing changed
> is it the correct event for selection ?
>
If you actually work with selections yes (one or several of the co_*select 
flags set and "selectedrows" property evaluated, necessary for 
multiselection).

If you like to simply use the focused row use oncellevent:
"
procedure tmainfo.celle(const sender: TObject; var info: celleventinfoty);
begin
 if isrowenter(info) then begin
  <the focused value>:= tstringgrid1[0][-1];
 end;
end;
"
or
"
  <the focused value>:= tstringgrid1[0][info.cell.row];
"
Martin

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to