Version

Disabling the Splitting of WinGrid into Regions

By default, the WinGrid™ can be split into multiple scroll regions, either by Row or Column .

To prevent the user from splitting the grid via regions, you can set the MaxColScrollRegions or MaxRowScrollRegions properties to 1.

In Visual Basic:

Private Sub Disable_the_Splitting_of_WinGrid_into_Regions_Load(ByVal sender As System.Object, _
  ByVal e As System.EventArgs) Handles MyBase.Load
	Me.UltraGrid1.DisplayLayout.MaxColScrollRegions = 1
	Me.UltraGrid1.DisplayLayout.MaxRowScrollRegions = 1
End Sub

In C#:

private void Disable_the_Splitting_of_WinGrid_into_Regions_Load(object sender, EventArgs e)
{
	this.ultraGrid1.DisplayLayout.MaxColScrollRegions = 1;
	this.ultraGrid1.DisplayLayout.MaxRowScrollRegions = 1;
}