Change one data grid row from another

Peter Haworth pete at lcsql.com
Wed Jan 30 18:33:33 EST 2013


Glad you got it working.
Pete
lcSQL Software <http://www.lcsql.com>


On Wed, Jan 30, 2013 at 2:21 PM, Gerry Orkin <gerry.orkin at gmail.com> wrote:

> Peter, thanks - got me headed in the right direction. I'm doing this when
> I click a row:
>
> put  the dgIndex of me into selectedRecord
> put the dgDataControlOfIndex [selectedRecord] of me into selectedRecord
>
> That gets me the group name of the row previously clicked. Now, when a new
> row is clicked I just reset the controls on the previously-stored group.
>
> Easy :)
>
> Cheers
>
> Gerry
>
>
>
> On 31/01/2013, at 4:32 AM, Peter Haworth <pete at lcsql.com> wrote:
>
> > Hi Gerry,
> > There may be a more official way to do this but here's one possibility.
> >
> > In your code that shows the group, store the group name for that row off
> > somewhere, possibly a cprop of the datagrid group.  In the same code get
> > the cprop contents and hide it.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list