We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Virtual Grid Not Refreshing

Thread ID:

Created:

Updated:

Platform:

Replies:

30802 Jun 24,2005 07:39 AM UTC Jun 24,2005 09:01 AM UTC WinForms 2
loading
Tags: GridControl
Ben Hinton
Asked On June 24, 2005 07:39 AM UTC

Hi, I am using two virtual grids. One shows the parent data, the other shows the details for the parent. So, when the user clicks on a record in the parent grid I am reloading the data in the detail grid. When the form loads for the first time I see the data I would expect, but when I refresh the data in the detail grid it doesnt show anything at all, although when I debug I can see that the data is there. Here''s the code when I set the data for the grid: this.BeginUpdate(); this.m_data = value as VirtualData; this.ResetVolatileData(); this.EndUpdate(); this.Refresh(); What am I doing wrong? Thanks. Ben

Administrator [Syncfusion]
Replied On June 24, 2005 08:22 AM UTC

The ''this'' in your code is the details grid, correct? Your code looks more or less correct. (There is no need for the call to ResetVolatile data as the later this.Refresh will also make this call. What I would try is to put a Console.WriteLine in the details.QueryCellInfo to display teh row/col and the value being set, and make sure the ouptput window is visible when you run the application in teh debugger. Then when you execute the code above, is querycellinfo being hit for each visiblle row/col, and is the data that you provide have the values you expect as seen in the output window?

Ben Hinton
Replied On June 24, 2005 09:01 AM UTC

Looks like I was getting an exception that was preventing the refresh from being executed. It''s working now. Yes, ''this'' is the grid. Its a custom control that derives from Syncfusion.Windows.Forms.Grid.GridControl. Thanks for your help. Ben >The ''this'' in your code is the details grid, correct? > >Your code looks more or less correct. (There is no need for the call to ResetVolatile data as the later this.Refresh will also make this call. > >What I would try is to put a Console.WriteLine in the details.QueryCellInfo to display teh row/col and the value being set, and make sure the ouptput window is visible when you run the application in teh debugger. Then when you execute the code above, is querycellinfo being hit for each visiblle row/col, and is the data that you provide have the values you expect as seen in the output window?

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;