Dean

Dean

  • NA
  • 18
  • 24.8k

Assign linq results to public list

Nov 15 2013 6:04 AM
Hi guys,

Ok can someone point out where I am going wrong here? I want to assign the results to a list and then assign that list to the itemsource of a grid....

       


public class AllLists

{

        public static List<string> LstQteHeader = new List<string>();

}


using (var context = new AscentEntities())

{

AllLists.LstQteHeader  = (from d in context.Qte_Header select d);

}           





               


            }





           



 


        }


Answers (10)