What cell in the data grid was clicked?

2009-12-28 Thread James Hurley

The user clicks on a data grid cell.

What variables determine the row and column numbers of the cell?

And the text of the cell?

Thanks,

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


Re: What cell in the data grid was clicked?

2009-12-29 Thread Michael Kann
It doesn't seem like the datagrid commands made it into the dictionary I have. 
I foraged around on the runrev website and found some info. You might find what 
you need on the following links. As a warning, I don't know jack about 
datagrids, just trying to be helpful.

Some links:

http://lessons.runrev.com/spaces/lessons/manuals/datagrid

http://lessons.runrev.com/spaces/lessons/manuals/datagrid_tips

http://lessons.runrev.com/spaces/lessons/manuals/datagrid_tips/lessons/7349-How-Do-I-Find-Out-Which-Line-The-Mouse-Is-Over-

http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7312-How-Do-I-Determine-The-Selected-Line-

http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7313-How-Do-I-Get-Data-Associated-With-a-Row-or-Column-









--- On Mon, 12/28/09, James Hurley  wrote:

> From: James Hurley 
> Subject: What cell in the data grid was clicked?
> To: use-revolution@lists.runrev.com
> Date: Monday, December 28, 2009, 10:48 PM
> The user clicks on a data grid cell.
> 
> What variables determine the row and column numbers of the
> cell?
> 
> And the text of the cell?
> 
> Thanks,
> 
> Jim Hurley
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 


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


Re: What cell in the data grid was clicked?

2009-12-29 Thread Trevor DeVore

On Dec 28, 2009, at 11:48 PM, James Hurley wrote:


The user clicks on a data grid cell.

What variables determine the row and column numbers of the cell?


Jim,

Each row in a Data Grid form/table and each column in a Data Grid  
table have custom properties that help you determine this information.  
Note that you use names to reference columns rather than numbers  
however. These properties include the dgLine or dgIndex and the  
dgColumn.


I just updated the "How Do I Get Data Associated With a Row or  
Column?" lesson in the manual to provide some more useful examples.


How Do I Get Data Associated With a Row or Column?: 



And the text of the cell?


The lesson also shows how to get the value associated with a cell  
using GetDataOfIndex. Look at the very last step in the lesson.


Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: What cell in the data grid was clicked?

2009-12-29 Thread Trevor DeVore

On Dec 28, 2009, at 11:48 PM, James Hurley wrote:


The user clicks on a data grid cell.

What variables determine the row and column numbers of the cell?

And the text of the cell?


One other lesson you might want to look at discusses how to define  
your own mouseDown handlers in a Data Grid. You have to make sure that  
the Data Grid is allowed to process the mouseDown message before your  
code does.


How Do I Add a mouseDown Event To The Data Grid Without Breaking It?: 


--
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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: What cell in the data grid was clicked?

2009-12-29 Thread James Hurley


Message: 1
Date: Tue, 29 Dec 2009 11:16:18 -0500
From: Trevor DeVore 
Subject: Re: What cell in the data grid was clicked?
To: How to use Revolution 
Message-ID: 
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

On Dec 28, 2009, at 11:48 PM, James Hurley wrote:


The user clicks on a data grid cell.

What variables determine the row and column numbers of the cell?


Jim,

Each row in a Data Grid form/table and each column in a Data Grid
table have custom properties that help you determine this information.
Note that you use names to reference columns rather than numbers
however. These properties include the dgLine or dgIndex and the
dgColumn.

I just updated the "How Do I Get Data Associated With a Row or
Column?" lesson in the manual to provide some more useful examples.

How Do I Get Data Associated With a Row or Column?: 
<http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7313-How-Do-I-Get-Data-Associated-With-a-Row-or-Column-





And the text of the cell?


The lesson also shows how to get the value associated with a cell
using GetDataOfIndex. Look at the very last step in the lesson.

Regards,

--  
Trevor DeVore

Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.com


Trevor,

Thanks once again. The  GetDataOfIndex  was the function I needed.

Unfortunately I am trying to learn data grids the way I learned the  
rest of RunRev, by applying the "Necessity is the mother of discovery"  
method.
There are too many bits and pieces of the data grid control for this.  
I need to exercise the discipline to go through your excellent  
tutorials. Sounds like a new year's resolution to me.


Regards,

Jim Hurley


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