Hi! everyone,
I am using a grid that is redesigned each time a cursor changes. Now, a cursor can have different number of feilds and different width. I am controlling the output with a config table that holds all the necessary information. Suppose there is a cursor of 5 fields and it is displayed as I want the first time. Now I double click on (e.g. field two) a form appears to edit the original value in the table. It saves the information and returns but the second column that I used to double click is gone. instead there is a column at the end of the grid with nothing. Now I go to another cursor and click on this information again. It shows the changes and displays ok.
What I noticed was that I am changing RecordSource to blank and before this I am doing columncount as 0. If I switch the commands it works fine as I want.
My question is WHY?
I am using a grid that is redesigned each time a cursor changes. Now, a cursor can have different number of feilds and different width. I am controlling the output with a config table that holds all the necessary information. Suppose there is a cursor of 5 fields and it is displayed as I want the first time. Now I double click on (e.g. field two) a form appears to edit the original value in the table. It saves the information and returns but the second column that I used to double click is gone. instead there is a column at the end of the grid with nothing. Now I go to another cursor and click on this information again. It shows the changes and displays ok.
What I noticed was that I am changing RecordSource to blank and before this I am doing columncount as 0. If I switch the commands it works fine as I want.
My question is WHY?