APNSoft.com - Web Controls, components for ASP.NET
 About Us 
 Articles 
 Products
 Downloads 
 Purchase
 Support

DataGrid
Controls Suite 4.5


Overview
Features
Reference Book
Live Demos
Populating with Data
Columns
Width
Sorting
Header Text
Line Numbers
Data Formatting
CSS Formatting
Fixed columns
HTML Template
XSL Template
ASCX Template
Rows
Appearance & Layout
Behavior
Bottom Bar
Application scenarios







The DataGrid allows sorting quite simply. By clicking on a column header the sorting is made in ascending order; by clicking the second time, data sorting acquires descending order, etc.
  • To disable the sorting functionality for a specific column, set the Sortable property
    value to false.
  • The property Sorted specifies a value that indicates whether the column data is sorted.
  • The method GetSortedColumn() returns the sorted column.
This example demonstrates DataGrid which cannot be sorted by clicking on the 'CompanyName' column's header.



Code Samples:


© 2003-2024 APNSoft. All rights reserved.    Terms of use.