Hi!
Just call the grid property setting by SetAll as in the sample in the article, and SortGrid will clear non structural indexes for you. Just Grid.SetAll("lEventSwitchOffSorting",.T.) before BEGIN TRANSACTION. To restore the sorting as it was before transaction, use Grid.SetAll("lEventSwitchOffSorting",.F.). This is predicted in a SortGrid, so SortGrid will do all this for you by a single command. Let me know if this works.
>>Hi!
>>
>>If you read the comment for SortGrid download - it says "This is a sample for article VFP Grids Part III in the Universal Thread magazine, October 2001." The explanation of all issues and problems are in that article. The problem with transactions you mentioned is also included in that article with workaround. You can use that article as a documentation for SortGrid class - it explains also how it works in depth.
>>
>>HTH.
>
>Vlad,
>for my foolish brain.
>
>How to determine which index is non structural? So I can clear it?
>
>Agnes
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.