Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Hi!
Yes, I am doing that already but I still have to build all the columns in the grid after the CursorFill() call as I only want to show some columns, some have dropdown combo's, some have dynamic current controls etc.
Sarosh
>Sarosh,
>
>Try setting the grid.RecordSource to "" (empty string) before calling the CursorRefresh() and CursorFill().
>
>Mike
>
>>Hi!
>>
>>I have a form with two grids on it grdCustomer (Parent) and grdOrders (Child) and the grid's RecordSources are a cursors created by cursoradapters in the dataenvironment of the form.
>>
>>In the grdCustomer's AfterRowColChange Event I have tried calling the cursoradapter's CursorRefresh() and CursorFill() -ThisForm.DataEnvironment.cadOrders.CursorRefresh()/CursorFill() methods and the grid looses all its column settings because a new underlying cursor gets created each time I call CursorRefresh() or CursorFill().
>>
>>Other than saving the grids columns settings (I would not like to do this as there are many columns and many currentcontrols in columns - very complicated dynamic expressions etc.) and then restoring them after calling CursorRefresh() or CursorFill() is there any other way?
>>
>>Thanks.
>>
>>Sarosh
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement