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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Done loading

Thread ID:

Created:

Updated:

Platform:

Replies:

36876 Nov 11,2005 01:43 PM UTC Nov 14,2005 06:14 PM UTC WinForms 6
loading
Tags: GridControl
StephenH
Asked On November 11, 2005 01:43 PM UTC

OK, I have searched the forums and have not found a solution to a SIMPLE problem. All I want to do is know when the grid is done loading the data, that''s it. Something as simple as this should not be rocket science or have us coding in events that have NOTHING to do with data and data loading to accomplish this. So.... I ask as it appears that MANY others have, how do I know, what event can I use, what property can I inspect to find out when the grid is done loading the data into it?

Administrator [Syncfusion]
Replied On November 11, 2005 02:22 PM UTC

What kind of grid are you using? What are you doing to populate this grid? Certain grids never load any data, while other grid require that you put physically put data into every cell.

StephenH
Replied On November 11, 2005 09:30 PM UTC

>What kind of grid are you using? What are you doing to populate this grid? > I am setting the ControlDataSource property to a dataset >Certain grids never load any data, while other grid require that you put physically put data into every cell.

Administrator [Syncfusion]
Replied On November 11, 2005 10:34 PM UTC

Exactly what windows forms grid class are you using? Of the 3 grids we ship (GridControl, GridDataBoundGrid and GridGroupingControl), none of tem has a property named ControlDataSource.

StephenH
Replied On November 12, 2005 12:54 PM UTC

GridGroupingControl. Why would it matter? I would expect that all of them would have a similar if not exactly the same interface. >Exactly what windows forms grid class are you using? Of the 3 grids we ship (GridControl, GridDataBoundGrid and GridGroupingControl), none of tem has a property named ControlDataSource.

Administrator [Syncfusion]
Replied On November 14, 2005 08:48 AM UTC

It matters. In a GridGroupingControl, it is the grid.CategorizedRecords event that is raised right after the GroupingEngine has iterated through all records and grouped/categorized them. No other other of our grid does this grouping/categorizing processing, so no other grid has such an event. In your initialization code you can force loading data by calling grid.Update or access any of its records, e.g. groupingGrid.Table.Records.Count. Loading data in a GridGroupingCOntrol is done “lazy”. That means the engine will only load the data only once it is really needed. But calling above method will trigger the loading and you can be certain that once the above method call returns the data have been loaded.

StephenH
Replied On November 14, 2005 06:14 PM UTC

Thanks, that seems to have worked in this instance, hopefully it will work for all future needs too. >It matters. In a GridGroupingControl, it is the grid.CategorizedRecords event that is raised right after the GroupingEngine has iterated through all records and grouped/categorized them. No other other of our grid does this grouping/categorizing processing, so no other grid has such an event. > >In your initialization code you can force loading data by calling grid.Update or access any of its records, e.g. groupingGrid.Table.Records.Count. > >Loading data in a GridGroupingCOntrol is done “lazy”. That means the engine will only load the data only once it is really needed. But calling above method will trigger the loading and you can be certain that once the above method call returns the data have been loaded. > >

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

;