Version

LoadStyle Enumeration

Enum associated with UltraGridLayout.LoadStyle property.
Syntax
'Declaration
 
Public Enum LoadStyle 
   Inherits System.Enum
public enum LoadStyle : System.Enum 
Members
MemberDescription
LoadOnDemandLoads rows as they are needed. NOTE: Some operations, like sorting rows, will cause the all rows to be loaded regardless of the load style setting because they require access to all rows. For example if you have a summary that sums the values of a column then when the summary is calculated all the rows will be loaded.
PreloadRowsPre-loads all rows.
Example
Following code sets the LoadStyle to LoadnOnDemand before setting the data source.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid


    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        ' Set the LoadStyle to LoadOnDemand to improve load time if the 
        'data source has lots of rows. LoadOnDemand delays creation of
        ' UltraGridRow objects until they are needed.
        '
        Me.UltraGrid1.DisplayLayout.LoadStyle = LoadStyle.LoadOnDemand
        Me.UltraGrid1.DataSource = Me.DataSet11
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;


		private void Form1_Load(object sender, System.EventArgs e)
		{
			// Set the LoadStyle to LoadOnDemand to improve load time if the 
			//data source has lots of rows. LoadOnDemand delays creation of
			// UltraGridRow objects until they are needed.
			//
			this.ultraGrid1.DisplayLayout.LoadStyle = LoadStyle.LoadOnDemand;
			this.ultraGrid1.DataSource = this.dataSet11;
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also