put 95 into lSelectedLine
set the hilitedLine of group myDatagrid to lSelectedLine — alternatively use 
index. 

Unless you are manually populating the data grid, this will autoscroll to the 
selected index/line. 

Bob S

 
> On Nov 12, 2014, at 18:28 , Glen Bojsza <gboj...@gmail.com> wrote:
> 
> I guess the title is hard to describe what I am trying to do.
> 
> Assume a user makes a selection by selecting a choice in a drop down list.
> 
> Based on the selection the associated line in the datagrid is located.
> 
> But the datagrid has 100+ lines and only shows 12 lines at a time unless
> scrolled and the associated line (in this example it is line number 37).
> 
> I would like the datagrid to show line number 37 in the visible rows at row
> 6... in other words it looks like the datagrid was scrolled down to line 37
> (keeping the order of the rows the same).
> 
> The datagrid doesn't have to visibly scroll just show the selected row (37)
> at the position of the 6th row in the visible table with the rows on either
> side of it.
> 
> I understand if you have questions about this question :-)
> 
> regards,
> 
> Glen
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to