Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6717285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:50:02+00:00 2026-05-26T08:50:02+00:00

this is the code of my page: OrganizationContext ctx = new OrganizationContext(); public EmployeeList()

  • 0

this is the code of my page:

    OrganizationContext ctx = new OrganizationContext();

    public EmployeeList()
    {
        InitializeComponent();
        ctx.Load(ctx.GetEmployeesQuery(), LoadBehavior.MergeIntoCurrent, EmployeesLoaded, null);
    }

    private void EmployeesLoaded(LoadOperation lo)
    {
        dataGrid1.ItemsSource = lo.Entities;
    }

The callback executes, and the LoadOperation.Entities.Count is 291 but for some reason the grid doesnt display anything. By the way i’ve tried setting the DataContext property and still doesnt work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:50:03+00:00Added an answer on May 26, 2026 at 8:50 am

    1st,make your DataGrid’s attribute AutoGenerateColumns=”True”;
    2nd the code should like:

    OrganizationContext ctx = new OrganizationContext();
    public EmployeeList()
    {
        InitializeComponent();
        LoadOperation lo=ctx.Load(ctx.GetEmployeesQuery());
        dataGrid1.ItemsSource = lo.Entities;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this jQuery function: $(#text).load(test3.php?id=+ Math.random()); And this code is in page: user.php
I have this code in the page load...For some reason the dropdown binds to
I have this testing code in PAGE A : <?php require_once('../mysite/php/classes/eventManager.php'); $x=new EventManager(); $y=$x->loadNumbers();
I have a problem with JavaScript magic. When I execute this code: var page
I have this piece of code: Page.ClientScript.RegisterClientScriptInclude(this.GetType(), Guid.NewGuid().ToString(), this.ResolveUrl(~/Scripts/min.js)); When we push to our
Im create this code to store page view in database, but i have problem
I've got this code on my page: header(Location: $page); $page is passed to the
how can i write this code from aspx page in code behind? <a href=skype:MySkype?call><img
Say I have this code in my page: <script language=javascript> $(document).ready(function() { $(.test).click(function() {
require 'coderay' puts CodeRay.scan('puts Hello, world!', :ruby).page This code will print full HTML page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.