Resizable DataGrid Question
pete at mollysrevenge.com
Tue Oct 18 14:29:03 CDT 2011
The selectionchanged message sent to the datagrid includes the index of the
current and previous selected datagrid rows as parameters. I'm not sure if
that will help though, since this happens outside of the custom behavior
where the LayoutControl handler sits.
Another way might be to store the index/line number of the row in a custom
property of the datagrid and get it back when you need it (and before
overwriting it with the current index/line of course!)
Have you considered doing this in the source data by inserting an extra row
with some sort of indication that it represents a sort break?
Molly's Revenge <http://www.mollysrevenge.com>
On Tue, Oct 18, 2011 at 10:46 AM, Mike Doub <Mike at doub.com> wrote:
> I am trying to use a DataGrid to create a contact list that has a spacer
> between each alphabetic grouping of names. I was thinking to use the
> non-fixed length attribute of the DataGrid and adjust the size dynamically
> in the LayoutControl handler as well as showing a field that would contain
> the spacer. I am unclear how to determine the contents of the previous
> grid element from within the current handler to know when expand the grid
> for the spacer. I also need to understand how to figure out if this is
> first grid element.
> Does anyone have any examples of how this might be accomplished?
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode