Way more often than I would like, I end up with a datagrid that gets corrupted when I load new data into it. The grid gives the appearance of having had data written over the top of existing data. Here is a screen shot of the looks like:
When I am in the IDE I can usually bring up the Property Inspector for the datagrid and in the Data Grid tab take the choice "Refresh Data Grid". That usually clears it up. In a stand-alone application when that happens my data grid is ruined and only a new version of the application fixes it. What is the equivalent of "Refresh Data Grid" while in a stand-alone application? I could at least provide a menu option to clean up the mess if I knew how to program it.
As a rule when I load new data into an established datagrid I do the following:
Code: Select all
set the dgText of group "DataGrid 1" to empty
--do whatever is necessary to gather my data either as text (tText) or an array (tArray)
set the dgText of group "DataGrid 1" to tText
or
set the dgData of group "DataGrid 1" to tArray
I am confident that others have seen this problem, there must be a way to correct in a stand-alone.
Thanks,
Larry