Infragistics(R) NetAdvantage(R) Windows Forms
GroupByRowPadding Property
See Also  Example E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace > UltraGridOverride Class : GroupByRowPadding Property

Specifies padding in pixels used around the GroupByRow's description. If set to -1 then 1 will be used. Default is -1.

Syntax

Visual Basic (Declaration) 
Public Property GroupByRowPadding As Integer
C# 
public int GroupByRowPadding {get; set;}

Example

Following code sets the GroupByRowPadding on the layout's override and a band's override.

Visual BasicCopy Code
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button41_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button41.Click

      ' Set the GroupByRowPadding on the layout's override.
      Me.UltraGrid1.DisplayLayout.Override.GroupByRowPadding = 4

      ' You can override that grid-wide setting for a particular band by setting it on the
      ' override of that band.
      Me.UltraGrid1.DisplayLayout.Bands(0).Override.GroupByRowPadding = 2

  End Sub
C#Copy Code
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void button41_Click(object sender, System.EventArgs e)
{

	// Set the GroupByRowPadding on the layout's override.
	this.ultraGrid1.DisplayLayout.Override.GroupByRowPadding = 4;

	// You can override that grid-wide setting for a particular band by setting it on the
	// override of that band.
	this.ultraGrid1.DisplayLayout.Bands[0].Override.GroupByRowPadding = 2;

}

See Also