>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!
Just put an empty grid control on form. Then set :
-Recordsourcetype as SQL
-Recordsource "select code,descr from product order by code into cursor mycursor"
Cetin