Page 1 of 1

datagrid shortening

Posted: Fri Jun 01, 2012 10:51 pm
by dunbarx
I don't mean some form of lard.

I am using small datagrids in an application. They are five rows high and four columns wide. There are column headers above the fray. No scrollbars.

Intermittantly, when I open a new session, in both the IDE and in the standalones that I build, the datagrids will "scroll" so that the first line is missing. There is a blank line at the bottom. It is as if I scrolled down one line. Fooling around with various properties, such as setting the vScroll to "true" and then back to "false", will restore the normal array.

I think I have found a way to reconstitute them, but it seems silly. I double set the rowHeight on openstack:

set the dgProp["row height"] of grp "myGroup" to 12 --shrinks everything down
set the dgProp["row height"] of grp "myGroup" to 24 -- where I really want it

My question is, has anyone seen this before? Is my kluge sillier than it looks?

I am reading the docs. Does sending "resetList" to the datagrid do what I want? I can only check this when the problem ocurrs.

Craig Newman