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. Image for the cookie policy date
close icon

how to increase width of specfic colunn

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

1 Reply

PS Pannir Selvam S Syncfusion Team August 30, 2013 02:22 AM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon