<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WidthHeight.aspx.cs" Inherits="DataGrid_WidthHeight" %>
<%@ Register TagPrefix="APNSoft" Namespace="APNSoft.WebControls" Assembly="APNSoftControls" %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    Set Width and Height:
    &nbsp;&nbsp;<a href="javascript:dg.SetGridWidth('myDataGrid',250);dg.SetGridHeight('myDataGrid',150);dg.InitColumnWidths('myDataGrid');">250x150</a>
    &nbsp;&nbsp;<a href="javascript:dg.SetGridWidth('myDataGrid',300);dg.SetGridHeight('myDataGrid',200);dg.InitColumnWidths('myDataGrid');">300x200</a>
    &nbsp;&nbsp;<a href="javascript:dg.SetGridWidth('myDataGrid',550);dg.SetGridHeight('myDataGrid',250);dg.InitColumnWidths('myDataGrid');">550x250</a>
    <br/><br />
        
    <APNSoft:APNSoftDataGrid id="myDataGrid" runat="server"
        SkinFolder = "~/DataGrid/Skins/GrayScale/"
        width = "380" 
        height = "250" 
    />
    


    
    </div>
    </form>
</body>
</html>