Click here to Skip to main content
15,892,737 members
Articles / Mobile Apps / Windows Mobile

.NET CF Custom DataGrid Formatting

Rate me:
Please Sign up or sign in to vote.
4.80/5 (16 votes)
29 Aug 2007CPOL4 min read 92.4K   3.4K   78  
This article shows you how to customize individual cells in a DataGrid - and it works on the Compact Framework.
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("GridSample")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("GridSample")]
[assembly: AssemblyCopyright("Copyright ©  2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible 
// to COM components.  If you need to access a type in this assembly from 
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("7f5f19d8-41d2-4eec-ad80-64920fbbb6ae")]

// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version 
//      Build Number
//      Revision
//
[assembly: AssemblyVersion("1.0.0.0")]

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Australia Australia
Steve Hayles is a professional Yacht Racing Navigator by day and a very average developer by night.

He is the founder of GRIB.US a weather data service provider specialising in the delivery of digital weather products.

GRIB.US have recently launched UGRIB - a viewing client utilising their own webservice which provides instant regional forecasts in GRIB format .

GRIB.US have also developed a custom data compression algorithm for GRIB data which outperforms general compression algorithms by 200% and can reduce file sizes to a third of the original size.

Check out http://www.grib.us for more details

Comments and Discussions