Version

We recommend that you use the xamDataGrid control instead of the xamGrid control. The xamGrid is being planned for retirement over the next few years and will not receive any new features. We will continue to provide support and critical bug fixes for the xamGrid during this time. For help or questions on migrating your codebase to the xamDataGrid, please contact support.

Enable Deferred Scrolling

By default deferred scrolling is not enabled on xamGrid. To enable or disable deferred scrolling, you simply set the DeferredScrollingSettings object’s AllowDeferredScrolling property to one of the following values of the Deferred ScrollingType enumeration:

  • Default – this value enables deferred scrolling and the default template will be displayed

  • None – this value disables deferred scrolling

The DefaultColumnKey property allows you to set which column’s information you want to display as your end user scrolls through the data. If you do not set this property, then the first column in your data set is displayed.

The following code demonstrates how to enable deferred scrolling.

In XAML:

<Grid x:Name="LayoutRoot" Background="White">
    <ig:XamGrid x:Name="MyGrid" AutoGenerateColumns="True">
        <ig:XamGrid.DeferredScrollingSettings>
            <ig:DeferredScrollingSettings AllowDeferredScrolling="Default" DefaultColumnKey="ProductName" />
         </ig:XamGrid.DeferredScrollingSettings>
       ...
    </ig:XamGrid>
</Grid>

In Visual Basic:

Me.MyGrid.DeferredScrollingSettings.AllowDeferredScrolling = DeferredScrollingType.Default
Me.MyGrid.DeferredScrollingSettings.DefaultColumnKey = "ProductName"

In C#:

this.MyGrid.DeferredScrollingSettings.AllowDeferredScrolling = DeferredScrollingType.Default;
this.MyGrid.DeferredScrollingSettings.DefaultColumnKey = "ProductName";