To enable the in-cell button for a C1DisplayColumn object, set its Button property to True in code:
Me.C1TrueDBGrid1.Splits(0).DisplayColumns(0).Button = True
· C#
this.C1TrueDBGrid1.Splits(0).DisplayColumns(0).Button = true;
· Delphi
Self.C1TrueDBGrid1.Splits[0].DisplayColumns[0].Button := True;
The Button property is also enabled when the column's DropDown property is set to the name of a C1TrueDBDropDown control, or when the Presentation property of the associated ValueItemCollection object is set to one of the combo box options.
By default, the in-cell button displays only for the current cell, as shown in the following figure.
However, by setting the column's ButtonAlways property to True, force the in-cell button to be displayed in every row.
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |