Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I have an xamGrid of infragastics but i have no idea binding data using linq. The project is a silverlight application. my connected to my WCF data service based on VatTu.edmx (ADO.NET Entity Data Model) In xamGrid, i create 2 columns with headertext:ID and Name In MainPage.xaml.cs:

C#
namespace SilverlightApplication12
{
public partial class MainPage : UserControl
{
    private VattuEntities db;
    private DataServiceCollection<VatTu> vts;
    public MainPage()
    {
        db = new VattuEntities(new Uri("http://localhost:43664/VatTuService.svc"));
        InitializeComponent();
    }

    private void UserControl_Loaded(object sender, RoutedEventArgs e)
    {
        var q= from vt in db.VatTus select vt;
        vts.LoadAsync(q);
        grid.itemsource=vts;  
    }       
}}


"vt" have 2 properties: ID and name. But the page always load 100% and never show my designed page. Please help me. Sorry for my bad English.
Posted
Comments
Sergey Alexandrovich Kryukov 23-Apr-13 11:18am    
Infragistic's product is a commercial one; they have their own forum. Why not asking them for support?
—SA
TokiHana 23-Apr-13 11:44am    
Because my friend adviced me to ask here.
Please help me.

1 solution

I have found that specific questions related to 3rd party is answered more quickly and accurately at respective forums.

Posting such issues about a 3rd party control (Infragistics here) Forum would be more useful, here: Infragistic Forums[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 23-Apr-13 14:24pm    
That was my point. Please see OP's reply in the comments to the question. Anyway, my 5.
—SA

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