Free Support Forum - aspose.com

Buttons in cells

I noticed that once I click off of the cell that has the button in it, the button disappears.

Is this by design? Is there anyway for the button to always be visible regardless of which cell has focus?

This is for Aspose.Grid.Desktop.

Hi,

The button in cell is designed to be invisible if the cell is not in focus.

But we can provide a method to set buttons always visible if you need it.

Thank you.

---------------------

Karen.huang
Developer
Aspose Nanjing Team
About Us
Contact Us

That would be great.

Hopefully we can finish it next week. Thanks for being patient.

Hi,

Please try the attached fix. In this fix:

1) Cell control button can be set to be always visible via the two methods of class CellControlCollection:

AddButton(int row, int col, int width, int height, string text, bool alwaysVisible)

AddButton(string cellName, int width, int height, string text, bool alwaysVisible)

2) The FreezeCols and Cell Merge issue is repaired.

3) Autofit feature is supported. If a column header split line is double clicked, the column will auto resize. Worksheet class also provides the following autofit methods from autofit one column to a range’s columns:

public void autoFitColumn(int columnIndex, int startRow , int endRow)

public void autoFitColumn(int columnIndex)

public void autoFitColumns(int startRow, int startColumn, int endRow, int endColumn)

public void autoFitColumns(int startColumn, int endColumn)

public void autoFitColumns()

public void autoFitRow(int rowIndex, int startColumn , int endColumn)

public void autoFitRow(int rowIndex)

public void autoFitRows(int startRow, int startColumn, int endRow, int endColumn)

public void autoFitRows(int startRow, int endRow)

public void autoFitRows()

Thanks for this…looks great.

Hi,

Please try the attached version. We just fixed an input issue, please refer to:

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you.