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.
Up arrow icon