Try and set the datasession to private for the form.
Does Grid1 have a recordsource by default?
If so, set it to nothing then set it to your cursor.
ThisForm.Grid1.RecordSource = ''
ThisForm.Grid1.RecordSource = "MyCursor"
>Can I create cursor then display into the grid
>
>for example :-
>In the form1.Init(), I put my code :-
>select code,descr from product order by code into cursor mycursor
>
>i set the grid1's recordsource is mycursor and the column1 = code,
>column2 = descr
>
>When I run it, first time have not effect,not thing is displayed, when I run it second time, It have data displayed.....
>How do i display the data at the first time ? then i destoyed it when i finished using it.
>
>Any one can help me on this ?
>
>Thanks!
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