Free Trial Buy Now

Data Binding - Live Data

Symbol
Change(Descending)
Value
Time
BEAS 0.00 % 120.2 
DELL 0.00 % 199.8 
LVLT 0.00 % 137.3 
YHOO 0.00 % 103.6 
AMAT 0.00 % 197.3 
ORCL 0.00 % 150 
HOKU 0.00 % 183.9 
AAPL 0.00 % 117.5 
SIRI 0.00 % 171.4 
CSCO 0.00 % 97.8 
INTC 0.00 % 92.3 
SUNW 0.00 % 167.1 
MSFT -0.61 % 180.319:52:12
 

Description

This demo shows how to display dynamic data within the ASPxGridView.

With the ASPxGridView, you are free to choose a data source to be displayed - whether it's a static collection or a web service providing live data. The latter option makes the ASPxGridView a great choice for building analytics tools with ease.

In this demo, the grid control is bound to a ObjectDataSource control, which provides randomly generated stock quotes (Quote objects). Once every 2 seconds, the grid control is updated via its Refresh client method, to visualize quote changes (the Change property of the Quote objects). To display an appropriate image indicator next to a percent change value, a template is used for the Change column (see the DataItemTemplate property in the demo's ASPX markup file). To access a Quote object being displayed within a grid row, the grid control's GetRow function is called (see the GetIconImageUrl, GetIconImageVisibility, and GetPercentageText methods in the code-behind file).

Version: v2011 vol 2.11
Experience the DevExpress Difference Today
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress ASP.NET Controls ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.