property Items.CellButtonAutoWidth([Item as Variant], [ColIndex as Variant]) as Boolean
Retrieves or sets a value indicating whether the cell's button fits the cell's caption.

TypeDescription
Item as Variant A long expression that indicates the item's handle.
ColIndex as Variant A long expression that indicates the cell's handle or the column's index, a string expression that indicates the column's caption or the column's key.
Boolean A boolean expression indicating whether the cell's button fits the cell's caption

By default, the CellButtonAutoWidth property is False. The CellButtonAutoWidth property has effect only if the CellHasButton property is true. Use the Def property to specify that all buttons in the column fit to the cell's content. If the CellButtonAutoWidth property is False, the width of the button is the same as the width of the column. If the CellButtonAutoWidth property is True, the button area covers only the cell's caption. Use the CellValue property to specify the button's caption. Use the CellValueFormat property to assign an HTML caption to the button. The control fires the ButtonClick property when the user clicks a button.