Complete the followingsteps to enable vertical and horizontal scrolling in a C1GridView control.
To write the code in Visual Basic:
Visual Basic |
Copy Code
|
---|---|
' Set the grid's height and width. C1GridView1.Height = 250 C1GridView1.Width = 450 ' Turn scrolling on and set both horizontal and vertical scrolling. C1GridView1.ScrollingSettings.Mode = C1.Web.Wijmo.Controls.C1GridView.ScrollMode.Both |
To write the code in C#:
C# |
Copy Code
|
---|---|
// Set the grid's height and width. C1GridView1.Height = 250; C1GridView1.Width = 450; // Turn scrolling on and set both horizontal and vertical scrolling. C1GridView1.ScrollingSettings.Mode = C1.Web.Wijmo.Controls.C1GridView.ScrollMode.Both; |
Modify the ScrollingSettings property within the <cc1:C1GridView> to enable both horizontal and vertical scrolling.
<cc1:C1GridView ID="C1GridView1" runat="server" Height="250px" Width="450px">
<ScrollingSettings Mode="Both">
</ScrollingSettings>