O'Reilly logo

.NET Framework 4.5 Expert Programming Cookbook by A.P. Rajshekhar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the live data shaper for live sorting

Data shaping means processing the data by sorting, grouping, or filtering the data being displayed. Live data shaping takes this one step forward and does the processing on live data. In the case of live data, the new data is being added continuously or the existing data is being changed continuously. Before Version 4.5 of .NET, shaping of live data meant adding custom logic so that sorting and grouping do not go wrong. .NET 4.5 provides a new collection type, which negates the requirement of custom logic for shaping live data.

In this recipe, we will use the new collection type to enable sorting of asset data based on the values that change continuously.

How to do it...

  1. Launch Visual Studio 2012. Add ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required