APNSoft - Web Controls, components for ASP.NET Home Help Center Contact Us
About UsProductsDownloadsPurchase
Support

DataGrid
Version 2.5



What's New
Overview
Features
Reference Book
Licensing
Support



Populating with Data
Columns
Rows
Bottom Bar
Layout and Behavior
Exporting
Skins





dg.GetWindowWidth();
Gets the width of window in pixels.

dg.GetWindowHeight();
Gets the height of window in pixels.

dg.GetFullGridID(GridID);
Gets the unique identifier of the DataGrid.

dg.InitGrid(GridID);
Initializes the DataGrid control.

dg.InitColumnWidths(GridID, PostBack);
Initializes columns of the DataGrid control. Sets all columns at an equal percent fraction of the DataGrid width. The initialization is not performed if the page is loaded after postback and the PostBack=false.

dg.Refresh(GridID);
Refreshes the content of the DataGrid.

dg.ScrollToTop(GridID);
Scrolls the contents of the grid to the top position.

dg.ScrollToLeft(GridID);
Scrolls the contents of the grid to the left position.

dg.SetGridHeight(GridID, Height);
Sets the height of the DataGrid in pixels. Range: 60-2048.

dg.SetGridWidth(GridID, Width);
Sets the width of the DataGrid in pixels. Range: 100-4096. Example:

<span onclick="dg.SetGridWidth('dg1', 500);">Set width</span>


dg.SetPage(GridID, PageNumber);
Sets the grid page number to be shown.

dg.Sort(GridID, ColumnIndex, Direction);
Sorts the data in the DataGrid. Direction values: '1' - ascending order, '2' - descending order. Example:

<span onclick="dg.Sort('dg1', 1, '2');">Sort</span>






  © 2003-2008 APNSoft. All rights reserved. Table of Contents   Terms of use   Contact Us   Help Center