Click here to Skip to main content
15,884,099 members
Articles / Programming Languages / C#

Conditional Controls at Runtime in Silverlight DataGrid

Rate me:
Please Sign up or sign in to vote.
4.93/5 (5 votes)
9 Aug 2011CPOL4 min read 32.8K   744   17  
Conditional controls at Runtime in Silverlight DataGrid
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace GridInSilverlight
{

  public  enum Mood
    {
        NA,
        Satisfied,
        Normal,
        UnSatisfied,
        UA

    }

    public class Customer 
    {
        
        public string Name{get;set;}

        public string Place { get; set; }

        public string  Phone{get;set;}

        public bool IsCorporate{get;set;}

        public Mood CustomerMood { get; set; }
    }

}

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
Microsoft
India India
Nothing special .. I like challenges and love my critics.

Microsoft | Bangalore | India

Blog : http://manaspatnaik.com/blog

Twitter@manas_patnaik

Comments and Discussions