• .NET

    Exporting data to Excel using the RadGridView for WinForms

         There usually comes a time for most developers when they need to use the data being displayed in an application, outside of that application.  There are obviously a number of ways you can present data, but it is common to leverage Microsoft Excel.  It provides a similar look and feel to the grid which means minimal reformatting, plus Excel is widely used and therefore most offices should have a version of the software available.       How to get your data into Excel?  The RadGridView offers a couple of options to accomplish this task.  First, you can use the Primary...
  • .NET

    Displaying Hierarchy in RadGridView for WPF

    Building on my previous post where I talked about how to bind data to the RadGridView, today I want to show how you can display hierarchical data in the grid.  I will follow the same concept of building an application for a car repair shop to manage vehicles in for repair.  I will leverage two classes to display the data.  The original Car class which was used previously and a new CustomerComplaint class.  The Complaint property of the Car object was initially a string, but we need to allow for several issues to be reported so we will use the CustomerComplaint class to...
    January 22, 2009
  • .NET

    Displaying data quickly in the RadGridView for WPF

    The RadGridView for WPF uses the ItemsSource property for binding data.  ItemsSource is actually of type System.Object which not only allows you to bind to any data source that implements IEnumerable, but also the ADO.NET DataTable and DataSet.  In this post, I am going to demonstrate how you can quickly bind data to the RadGridView for WPF.  The task will be to build a car repair shop application which will display all the cars currently in the shop.  To get started we need to have some data, so we will use a simple class to store Car information.       public class Car       {           public string Make { get; set; }...
    January 20, 2009
  • .NET

    Export RadGridView Data to Microsoft Excel

    I am sure that most of your data-driven applications require support for Microsoft Excel. Probably the best and most famous spreadsheet application known for data manipulation, MS Excel provides useful features such as calculations, graphing tools and pivot tables – things that are not so easy to do in a regular data-driven application. RadGridView for WinForms offers data export to Excel out of the box, a handy feature that saves you the hassle to do this yourself. It supports two methods for exporting data:     • Exporting through Primary Interop Assemblies, optimized for black & white printing. Here we provide a...
  • .NET

    Host Telerik’s WPF Gauges and Charts in RadGridView for WinForms

    Did you have a chance to try the beta versions of Telerik’s WPF gauges and charts ? Yes? And you like them, but already have a big and complex WinForms project and you have no plans to upgrade it to the new amazing WPF technology soon? Do not worry; you can get the best of both worlds and use the WPF goodies in your WinForms application thanks to the ElementHost control that resides in the namespace System.Windows.Forms.Integration.  You could find more info on this topic in the following MSDN article: http://msdn.microsoft.com/en-us/library/ms745781.aspx Following this concept, I have prepared a WinForms application with Telerik’s WPF...