This is a mirror of official site: http://jasper-net.blogspot.com/

Show Child Grid inside Grid in Silverlight

| Wednesday, October 13, 2010
Image4.jpg

This article describes for you the concept of Data Grid. It shows use a child grid inside of a Data Grid.

So here we go. First of all make a new Silverlight project and put a name and save location.

Now add a two new classes using Add new Item menu and put a suitable class name.

Customers.cs

Add a namespace on top of class.

using System.Collections.Generic;

public class Customers
{
   /// <summary>
   /// Represents the customer's id.
   /// </summary>
   public string CustomerID { get; set; }
   /// <summary>
   /// Represents the customer's company name.
   /// </summary>
   public string CompanyName { get; set; }
   /// <summary>
   /// Represents the customer's contact name.
   /// </summary>
   public string ContactName { get; set; }
   /// <summary>
   /// Represents the customer's contact title.
   /// </summary>
   public string ContactTitle { get; set; }

Read more: C# Corner

Posted via email from .NET Info

0 comments: