Form Refresh

hi every one,

Can any one help me sort small issue.

I want to refresh my form whenever i move different records in grid. When i move cursor to different record in grid then form should get refreshed..

 

Thanks in advance.

 

  • Hi ,

    try with

           datasourcename.reread();

           datasourcename.refresh();

    After ur code

     

     

  • In reply to Jyothi:

    Hello jyothi,

    Thanks for quick reply.

    In which method should i use the reread and refresh statement?

    Regards,

    Rajendra

     

  • In reply to Rajendra:

    I am Able refresh data source. But in my form i am enabling and disabling buttons whenever i move cursor to different records in grid.

  • In reply to Rajendra:

    Hi Rajendra,

    where ever ur enabling and disabling the buttons after that u try to refresh...and after that write Datasourcename.executequery()

  • In reply to Jyothi:

    Hi Jyothi,

    I am enabling and disabling buttons in data source active method. Form is continuously refreshes if i use refresh and reread in Active method.

    Regards,

    Rajendra

  • In reply to Rajendra:

    Enabling and disabling doesn't need a refresh or reread, don't call them on active method only place the enable/disable logic on active method.

  • In reply to Kranthi:

    Hi kranthi,

    After removing refresh and reread datasource is getting refreshed but form buttons are not refreshing.

    Regards,

    Rajendra

  • In reply to Rajendra:

    If i press F5 then form is getting refreshed.

Related
Recommended