Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Category:
Forms & Form designer
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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only