Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET
Can anybody help me with my problem.

I've managed to create and open excel file from but
my problem is that when it open, the gridlines of the excel file
are hidden.
How can i automatically show the gridlines from using vb?
Posted 18-Dec-12 4:41am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

ASP.NET ShowGridLines Property
ASP.NET ShowGridLines Property this property is set as FALSE by defalult and the grid lines are not displayed.
To show the grid lines the property must be set as TRUE.
ASP.NET ShowGridLines Property[^]
Hernan K. Cabrera at 18-Dec-12 11:06am
Hi Abhisnek,
I think showgridlines is not applicable for me.
Response.AppendHeader("Content-Disposition", "attachment; filename="testing.xls")
Reponse.ContentType = "application/"
Response.Buffer = true
dim content as new stringwriter
' Codes to put data to the stringwriter (content)

With this code, i can write and show the excel file but the problem is that
the gridlines of the excel file are hidden.
What should i do?

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

  Print Answers RSS
0 OriginalGriff 420
1 CHill60 410
2 Sergey Alexandrovich Kryukov 384
3 PIEBALDconsult 245
4 BillWoodruff 243

Advertise | Privacy | Mobile
Web02 | 2.8.141015.1 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100