Skip to main content

Posts

Showing posts from July, 2012

Silverlight Binding DataGrid with two dimensional array

Set   DataGrid  AutoGenerateColumns = "False"   public   partial   class   MainPage  :  UserControl     {          public  MainPage()         {             InitializeComponent();             BindDataGrid(GetTwoDimensinalArray());         }          string [,] GetTwoDimensinalArray()         {              //Generating two dimensional array              string [,] returnValue =  new   string [5, 5];       ...

Reflection, retrieve property type

 Defining classes public   class   Address     {          public   string  Steet {  get ;  set ; }          public   string  Apartment {  get ;  set ; }          public   string  City {  get ;  set ; }          public   string  State {  get ;  set ; }     }      public   class   Car     {          public   string  Make {  get ;  set ; }          public   int  Year {  get ;  set ; }          public   string  M...