Click here to Skip to main content
15,745,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have this small query that how can we set the single column width in spreadsheet cell

i have done this but it constantly gives error..

cells.Columns[0, 0].Width = 100;

please reply soon

1 solution

cells.Columns[0, 0].ColumnWidth = 30;
          cells.Columns[0, 1].ColumnWidth = 30;
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900