ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1DisplayColumn.ButtonAlways Property

Gets or sets a value indicating whether buttons will be displayed when the cell does not contain focus.

[Visual Basic]

Public Property ButtonAlways As Boolean

[C#]

public bool ButtonAlways {get;set;}

[Delphi]

public property ButtonAlways: Boolean read get_ButtonAlways write set_ButtonAlways;

Remarks

If True, a button will always be displayed within every visible cell, even if another column or control has focus.

If False (the default), a button will be displayed within the current cell only.

Note: This property has no effect on columns without in-cell buttons. In-cell buttons are enabled for a column when any of the following are true:

·      The column's Button property is set to True.

·      The column's ButtonText property is set to True.

·      The column's C1DataColumn.DropDown property is set to a C1TrueDBDropdown control.

·      The ValueItems.Presentation property of the column's ValueItems collection is set to Combo Box or Sorted Combo Box.

Example

The following code uses the ButtonAlways property to always display a button within every visible cell of the specified column, CustomerID:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(0).DisplayColumns("CustomerID").ButtonAlways = True

·      C#

       this.c1TrueDBGrid1.Splits[0].DisplayColumns["CustomerID"].ButtonAlways = true;

·      Delphi

       Self.C1TrueDBGrid1.Splits[0].DisplayColumns['CustomerID'].ButtonAlways := True;

See Also

C1DisplayColumn Class | C1DisplayColumn Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.