Version

ButtonDisplayStyle Enumeration

Enum to specify the style of displaying buttons in various column styles.
Syntax
'Declaration
 
Public Enum ButtonDisplayStyle 
   Inherits System.Enum
public enum ButtonDisplayStyle : System.Enum 
Members
MemberDescription
Alwaysalways display buttons
OnCellActivatedisplay only when the cell is activated
OnMouseEnterdisplay button whenever the mouse enters the cell ui element
OnRowActivatedisplay when the row the cell belongs to is activated
Example
Following code sets the ButtonDisplayStyle property on a column to always show buttons in its cells. Buttons inlcude drop down arrow buttons as well as edit buttons and regular buttons.

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

  Private Sub Button6_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button6.Click

      ' ButtonDisplayStyle property off the column dictates when the buttons in cells of
      ' that column are displayed. By default buttons are displayed whenever the user
      ' moves mouse over the cell. You can set this property to Always to make the
      ' UltraGrid always display the buttons. Buttons inlcude drop down arrow buttons
      ' as well as edit buttons and regular buttons.

      Dim column As UltraGridColumn = Me.UltraGrid1.DisplayLayout.Bands(1).Columns("OrderDate")

      column.ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always

  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

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

	// ButtonDisplayStyle property off the column dictates when the buttons in cells of
	// that column are displayed. By default buttons are displayed whenever the user
	// moves mouse over the cell. You can set this property to Always to make the
	// UltraGrid always display the buttons. Buttons inlcude drop down arrow buttons
	// as well as edit buttons and regular buttons.

	UltraGridColumn column = this.ultraGrid1.DisplayLayout.Bands[1].Columns["OrderDate"];

	column.ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always;

}
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