The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator Syncfusion Team 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?
BHBen HintonJune 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?