10
Answers

Assign linq results to public list

Ask a question
Dean

Dean

10y
1.8k
1
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)