Datagrid - Selecting a line after sorting ..

jrarick at hpsk12.net jrarick at hpsk12.net
Fri Apr 9 10:10:35 EDT 2010


Perfect!

Absolutely perfect!  Thanks Trevor ... Again.

Jack Rarick
Braintree Athletic Systems

------Original Message------
From: Trevor DeVore
Sender: use-revolution-bounces at lists.runrev.com
To: How to use Revolution
ReplyTo: How to use Revolution
Subject: Re: Datagrid - Selecting a line after sorting ..
Sent: Apr 9, 2010 9:26 AM

On Apr 8, 2010, at 11:03 PM, JACK RARICK wrote:

> I have a datagrid with one hundred rows and six columns. The user  
> clicks on a "cell" somewhere in the middle of the grid that  
> immediately performs an action and resorts the grid. The row number  
> is stored - but how do I get the original line "reselected" so the  
> user knows where he was?

Grab the dgHilitedIndex before you sort and then set the  
dgHilitedIndex after performing the sort. Using the index allows you  
to track rows in the Data Grid regardless of sort order.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Sent from my Verizon Wireless BlackBerry


More information about the use-livecode mailing list