The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Binding ES to Grids

Last post 05-23-2007, 4:39 PM by Mike.Griffin. 19 replies.
Page 2 of 2 (20 items)   < Previous 1 2
Sort Posts: Previous Next
  •  05-23-2007, 1:55 PM 2682 in reply to 2681

    Re: Binding ES to Grids

    Not sure, I guess I can do that. In the example I just removed the ref's to the DLL's and added them back pointing to the new version and then it worked just fine.

     Were you able to try the demo I sent? Did that work fine or were you able to get the error?

  •  05-23-2007, 3:30 PM 2683 in reply to 2682

    Re: Binding ES to Grids

    I was kind of hoping you were going to do a sample for SQL Northwind, I don't have your database?

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  05-23-2007, 3:32 PM 2684 in reply to 2683

    Re: Binding ES to Grids

    This looks pretty complicated, why not just start with a simple grid, set it to AutoGenerate columns and bind and build up from there?

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  05-23-2007, 4:11 PM 2685 in reply to 2684

    Re: Binding ES to Grids

    Stick out tongue Forgot about the database part....My bad.

     I think I just figured out the problem. If you look at the demo you might see that I added a tab to the tools and added my ES objects to it. I then would drag what I needed onto the form. This ES object would then be the datasource for the bindingsource object and filled when the form loads. Using the objects in this maner caused the error.

    So now I went in and added a new datasource to the project(Data-->Add New Data Source), select object, select ES object, now you have a new datasource. Now set bindingsource object to this datasource and use the following:

    Code:
            Dim acctcoll As New DAL.NSS.DataObjects.AccountsCollection
            acctcoll.LoadAll()
    
            Me._AccountsCollectionBindingSource.DataSource = acctcoll
            Me.C1TrueDBGrid1.DataView = C1.Win.C1TrueDBGrid.DataViewEnum.Hierarchical
    

     

    Now it loads with no errors. Of course the Hierarchical mode doesn't seam to work, but I'll bring that up later after I play with it some more.

    I'm guessing I was using the ES objects wrong for Design time binding and this is the correct way? Hope that was clear.

  •  05-23-2007, 4:39 PM 2688 in reply to 2685

    Re: Binding ES to Grids

    Awesome, we don't support hierarchical binding yet, but it's coming in a follow on release. It's not hard to do for us too, there's just no time before the 28th. However, I it is coming in a following minor revision.
    EntitySpaces | Twitter | BLOG | Please honor our Software License
Page 2 of 2 (20 items)   < Previous 1 2
View as RSS news feed in XML