You are not logged in.
This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.
Pages: 1
Topic closed
Hi Jing,
Could we please have this feature in the WorksheetSettings, where the column width adjusts to fit all the length of the data in the cells?
Regards.
Offline
Perhaps you mean this:
In VB, for column A (0):
ReoGridControl1.CurrentWorksheet.ColumnHeaders(0).FitWidthToCells()
There is a similar method for rowheaders (fitheight...).
Note: These methods do not work if you are using a workbook in memory.
Last edited by alexeyrlx (2016-03-08 10:53:28)
My English is perfect! (My version of the English language ;-) )
Offline
Hi deaspo, Alexey's solution is nice idea.
In addition, the automatic column width feature added in version 1.3 as a worksheet settings, but by default it is disabled. It can be enabled by using the following code:
sheet.EnableSettings(WorksheetSettings.Edit_AutoExpandColumnWidth);
Download available at https://reogrid.net/download/
Last edited by Jingwood (2016-05-26 13:10:41)
Offline
Pages: 1
Topic closed