Datagrid - Selecting a line after sorting ..

jrarick at jrarick at
Fri Apr 9 10:10:35 EDT 2010


Absolutely perfect!  Thanks Trevor ... Again.

Jack Rarick
Braintree Athletic Systems

------Original Message------
From: Trevor DeVore
Sender: use-revolution-bounces at
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
Releasable Revolution Resources for Developers:
use-revolution mailing list
use-revolution at
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Sent from my Verizon Wireless BlackBerry

More information about the Use-livecode mailing list