Page 2 of 4

Re: HMG 3.0.20 Final Release

Posted: Mon Feb 08, 2010 8:11 am
by mol
I think, something is wrong with GRID control when used to browse database.
Try to add and delete some records.
Empty rows appear in grid.

Strange effects when clicking in the grid...

Re: HMG 3.0.20 Final Release

Posted: Mon Feb 08, 2010 12:13 pm
by l3whmg
Many thanks Roberto: great work.

Re: HMG 3.0.20 Final Release

Posted: Mon Feb 08, 2010 12:19 pm
by arroya2
Maravilloso el trabajo que está realizando.

Muy agradecido
Rafael Pérez

Re: HMG 3.0.20 Final Release

Posted: Mon Feb 08, 2010 1:16 pm
by Roberto Lopez
mol wrote:I think, something is wrong with GRID control when used to browse database.
Try to add and delete some records.
Empty rows appear in grid.

Strange effects when clicking in the grid...
Ok.

I've not documented (I've forgot it) but, at the moment, data-bound grid DOES NOT SUPPORT the use of SET FILTER and SET DELETED commands.

Your sample uses SET DELETED, that is the problem.

Re: HMG 3.0.20 Final Release

Posted: Mon Feb 08, 2010 1:35 pm
by fchirico
Roberto Lopez wrote:Hi All,

Here we are... some months and 19 test releases later, the 3.0(.20) final release is here.
Thank You Roberto, this it´s a great versión.

Re: HMG 3.0.20 Final Release

Posted: Mon Feb 08, 2010 1:54 pm
by JALMAG
Gracias Roberto. Es impagable tu trabajo.
Un abrazo

Re: HMG 3.0.20 Final Release

Posted: Mon Feb 08, 2010 2:16 pm
by ClaudioGalera
Thanks Master for this great release :)

Re: HMG 3.0.20 Final Release

Posted: Mon Feb 08, 2010 2:37 pm
by Rathinagiri
Hi Roberto,

I had used virtual grid in one of my projects today. I am really astonished to see the results. It is amazing! The speed is just unimaginable. :D

However, I could not use gridprint. :( I think I have to modify the gridprint code accordingly.

Re: HMG 3.0.20 Final Release

Posted: Mon Feb 08, 2010 5:36 pm
by Roberto Lopez
rathinagiri wrote:Hi Roberto,

I had used virtual grid in one of my projects today. I am really astonished to see the results. It is amazing! The speed is just unimaginable. :D

However, I could not use gridprint. :( I think I have to modify the gridprint code accordingly.
Ok.

I guess that the problem is how to get the data for a specific cell.

You have some different ways to do it.

The most straight way (if you refer to a grid bound to a table) is as follows:

Code: Select all

GetDataGridCellData ( nControlIndex , lTrueData)
To get the control index:

Code: Select all

nControlIndex := GetControlIndex ( cControlName , cWindowName) 
Regarding lTruedata, when .T. the function will return the current cell content. When .F. the function will return the cell data processed by DynamicDisplay (if it was specified).

If you want to retrieve the cell content for a non-data-bound grid, you must execute the same procedure as you execute for the OnQueryData procedure but tricking it to pass to it the required logical row and column.

Re: HMG 3.0.20 Final Release

Posted: Mon Feb 08, 2010 5:59 pm
by Rathinagiri
Thanks Roberto. This will return the current cell content. I want to go through all the cells one by one in a loop.