[CLOSED] How to bind linq to sql result to data gridpanel

  1. #1

    [CLOSED] How to bind linq to sql result to data gridpanel

    Hi,
    How to bind linq 2 SQL result to data gridpanel property, this request bellow :
     ICollection<Counterparty> IRepository<Counterparty>.GetAll()
            {
                using (AxeCreditEntities context = new AxeCreditEntities())
                {
                    return context.Counterparties1.ToList();
                }
            }
    I would like to bind the method GetAll to :
     AjaxStoreResult result = new AjaxStoreResult (); 
    result.Data = GetAll();
    Thank you in advance
    Last edited by Daniil; May 14, 2012 at 8:07 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Does the GetAll method return a list of Counterparty objects, right?

    What is the Counterparty object?

    Does it not work?
    result.Data = GetAll();
    What is a response of a Store load request?

Similar Threads

  1. Replies: 0
    Last Post: Feb 10, 2011, 1:04 PM
  2. Bind objects from LINQ to DataView
    By Skorfulose in forum 1.x Help
    Replies: 0
    Last Post: Dec 18, 2009, 5:03 AM
  3. LINQ result and combobox DataSource
    By latif in forum 1.x Help
    Replies: 5
    Last Post: Nov 24, 2009, 9:58 AM
  4. Using LINQ to dynamic sort data in GridPanel
    By sunny_sh in forum 1.x Help
    Replies: 3
    Last Post: Nov 16, 2009, 2:18 PM
  5. Replies: 0
    Last Post: Jun 19, 2009, 4:18 AM

Posting Permissions