Click here to Skip to main content
15,031,687 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hai sir

I am vinodkumar.s working for silverlight project . I am a fresher . how to handle

list Array in silverlight 2
Posted

1 solution

hi vinodkumar.s

First create one list array in public in top


       public static List<pnrlist> PnrlistList;
       public class Pnrlist
       {
           public Pnrlist(string airline, string pnr, string airpnr, string crspnr)
           {
               Airline = airline;
               Pnr = pnr;
               Airpnr = airpnr;
               Crspnr = crspnr;
           }
           public string Airline { get; set; }
           public string Pnr { get; set; }
           public string Airpnr { get; set; }
           public string Crspnr { get; set; }
       }
</pnrlist>



after that where u want to handle that list array just declare there

PnrlistList = new List<pnrlist>();</pnrlist>


after that load the data inside the listarray

PnrlistList.Add(new Pnrlist("A","B","C","D"));


and assign to grid

datagird.ItemsSource = PnrlistList; 


Ok bye..

regards

siva
   
v2

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




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900