I’m trying to use GridWeb in order to have a spreadsheet in my ASP.NET page. Attached is an image of how the page is rendering in Google Chrome, which is the browser most people within the company are using (I should mention that this is going to be an web page for internal company usage). I don’t understand why the page is rendering with the worksheet only several pixels high. The demo page at
renders perfectly find in Google Chrome. My markup code is as follows:
<%@ Page Title=“” Language=“vb” AutoEventWireup=“false” MasterPageFile=“~/Master Pages/Employee.Master” CodeBehind=“Timesheet.aspx.vb” Inherits=“LEWWebPortal.Timesheet” %>
<%@ Register assembly=“Aspose.Cells.GridWeb” namespace=“Aspose.Cells.GridWeb” tagprefix=“acw” %>
<asp:Content ID=“Content1” ContentPlaceHolderID=“MainContent” runat=“server”>
<acw:GridWeb ID=“GridWeb1” runat=“server” width=“624px” height=“300px” XhtmlMode=“false” MaxColumn=“5” ForceValidation=“false” >
</acw:GridWeb>
</asp:Content>
In my code-behind I added some code to add some test data:
GridWeb1.WebWorksheets.Clear()
GridWeb1.WebWorksheets.Add(“Students”)
Dim sheet As WebWorksheet = GridWeb1.WebWorksheets(0)
With sheet
.Cells(0, 0).PutValue(“Name”)
.Cells(0, 1).PutValue(“Gender”)
.Cells(1, 0).PutValue(“Name1”)
.Cells(1, 1).PutValue(“Gender1”)
.Cells(2, 0).PutValue(“Name2”)
.Cells(2, 1).PutValue(“Gender2”)
.Cells.SetColumnWidth(0, New Unit(80, UnitType.Point))
.Cells.SetColumnWidth(0, New Unit(80, UnitType.Point))
End With
Can someone please explain why the page Grid is not rendering correctly? Any help would be greatly appreciated.