Re: Major Datagrid Issues

2012-04-17 Thread zryip theSlug
Hi Pete, Sorry for the delay in the answer, I've just read your post. Have you tried to send a ResetControl command to the datagrid, before to change the dgNumberOfRecords property? Example: command PopulateMyDataGrid doMySQLStuff send ResetControl to grp myDataGrid set the

Re: Major Datagrid Issues

2012-04-17 Thread Peter Haworth
Thank you zryip, that fixed both problems. I had found another solution which was to set the dgtext to empty. I initially thought that wouldn't work since the internal dg storage is not supposed to exist when use dgNumberOFRecords. I feel more comfortable with your solution though, Thanks, Pete

Re: Major Datagrid Issues

2012-04-15 Thread Peter Haworth
Hi Ken, Thanks of the suggestion but Persisent Data is already off. Have to admit, I never really did understand the Persistent Data setting, especially in standalones where there's no such thing. Pete lcSQL Software http://www.lcsql.com On Sat, Apr 14, 2012 at 10:09 AM, Ken Ray

Re: Major Datagrid Issues

2012-04-14 Thread Ken Ray
I load data into the datagrid by setting the dgNumberOfRecords - GetDataForLine is called correctly, all looks fine. Now I go through a filtering process and set the dgNUmberOfRecords again, let's say it ends up at 2. GetDataForLine gets called twice and I see that I load the correct data

Major Datagrid Issues

2012-04-13 Thread Peter Haworth
I am running into some pretty major issues using the datagrid's dgNUmberOfRecords/GetDataForLine functionality. First issue. I load data into the datagrid by setting the dgNumberOfRecords - GetDataForLine is called correctly, all looks fine. Now I go through a filtering process and set the

Re: Major Datagrid Issues

2012-04-13 Thread Glen Bojsza
On the second issue, is it that the scrolling does not work at all? I have encountered this problem several times where there are more rows than what is shown but the vertical scroll bar does not scroll past the lines shown... ie the size of the scroll bar indicates that more rows are present.

Re: Major Datagrid Issues

2012-04-13 Thread Peter Haworth
Hi Glen, Thanks for the suggestions. In this case, the thumb is firmly anchord at the bottom of the crollbar, seemingly indictaing that there are no more rows. Unfortunatly, references to the dgText have no effect in this environmentt. Using the dgNumberOfRecofrds and GetDataOfLine means that