Form Refresh

Not Answered This post has 0 verified solutions | 2,103 Views | 8 Replies | 0 Followers

Male
54 Posts
310 Points
Joined: 2011-10-24
Last Online:
2014-8-19 12:48
Location: Banglore
Rajendra posted on 2012-2-2 8:25 rated by 0 users

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.

 

  • | Post Points: 6

All Replies

Female
183 Posts
2,679 Points
Joined: 2011-10-13
Last Online:
2016-2-11 17:40
Location: Hyderabad

Hi ,

try with

       datasourcename.reread();

       datasourcename.refresh();

After ur code

 

 

Regards

- JP 

  • | Post Points: 6
Male
54 Posts
310 Points
Joined: 2011-10-24
Last Online:
2014-8-19 12:48
Location: Banglore

Hello jyothi,

Thanks for quick reply.

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

Regards,

Rajendra

 

  • | Post Points: 5
Male
54 Posts
310 Points
Joined: 2011-10-24
Last Online:
2014-8-19 12:48
Location: Banglore

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.

  • | Post Points: 6
Female
183 Posts
2,679 Points
Joined: 2011-10-13
Last Online:
2016-2-11 17:40
Location: Hyderabad

Hi Rajendra,

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

Regards

- JP 

  • | Post Points: 6
Male
54 Posts
310 Points
Joined: 2011-10-24
Last Online:
2014-8-19 12:48
Location: Banglore

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

  • | Post Points: 6
Male
3,926 Posts
75,175 Points
Joined: 2007-11-12
Last Online:
2016-2-4 14:42
Location: Hyderabad - India
DynamicsMVP

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.

No Pain, No Gain

  • | Post Points: 6
Male
54 Posts
310 Points
Joined: 2011-10-24
Last Online:
2014-8-19 12:48
Location: Banglore

Hi kranthi,

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

Regards,

Rajendra

  • | Post Points: 5
Male
54 Posts
310 Points
Joined: 2011-10-24
Last Online:
2014-8-19 12:48
Location: Banglore

If i press F5 then form is getting refreshed.

  • | Post Points: 5
Page 1 of 1 (9 items) | Get this RSS feed