Click here to Skip to main content
12,882,820 members (37,240 online)
Rate this:
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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170422.1 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2017
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