We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

how to increase width of specfic colunn

Thread ID:

Created:

Updated:

Platform:

Replies:

110856 Aug 28,2013 01:13 AM Aug 29,2013 10:22 PM WPF 1
loading
Tags: SpreadsheetControl(Classic)
MANI SHANKAR
Asked On August 28, 2013 01:13 AM

i want to increase width of one specfic column.
 
 
For any help thanks in advance..

Pannir Selvam S [Syncfusion]
Replied On August 29, 2013 10:22 PM

Hi Mani Shankar,

 

Thanks for contacting Syncfusion support.

 

You can set the width of a specific column by using the SetColumnWidthInPixels() method like below code snippet.

Code Snippet[C#]:

var grid = this.spreadSheetControl.GridProperties.ActiveSpreadsheetGrid;
IWorksheet sheet = this.spreadSheetControl.ExcelProperties.WorkBook.ActiveSheet;
sheet.SetColumnWidthInPixels(2, 100);
grid.InvalidateCell(GridRangeInfo.Col(2));
grid.InvalidateVisual(true);

 

 

Please let us know if you have any other queries.

 

Thanks,

Pannir


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;