Hi!
You can take out cursor name from ControlSource os the grid columns. It is always in form of "cursorname.fieldname" for all columns after you re-assign the RecordSource property for grid.
BTW, take into account that "RecordSourceType" should be changed before 'RecordSource', if you change it at all. If it is always "4" from start (set in design time), no need to change it.
>I want to know the bounded cursor of and Grid, this grid will be in a custom Class, it could be easy if I check the RecourdSource property, but I want to know the cursor binded when I'm using RecordSourceType = 4. Is there an easy way?, or must I have to split the RecordSource? if I must do it which event must I check?
>
>The Grid class would pay attention in Dynamical re-asigment of RecordSource:
>
>
> WITH ThisForm.eGridSelection
> .RecordSource = "SELECT * from Customer INTO CURSOR "+SYS(2015)
> .RecordSourceType = 4
> ENDWITH
>
>
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.