in
Forums
Blogs
Files
Devexpress.Com
ClientCenter
Support Center
DevExpress Channel

Settings at design time and re-binding at runtime

Last post 9/2/2008 2:21 AM by Glen Harvy. 2 replies.
Page 1 of 1 (3 items)
Sort Posts:
Previous Next
  • 8/21/2008 10:53 AM

    Settings at design time and re-binding at runtime

    Hi,

    I am coming from a forms background and need some help please.

    I have a pivotgrid's datasource bound to a sqlcedatasource so that I can set various options at design time.

    So that I can create a new table at runtime based on the pivotgrid's original table, I created a dataset.xsd and dragged the original table onto it from the database.   I then created a new table at runtime  and add the rows and data I need to the new table. Once this is done I change the binding of the pivotgrid to the newly created table.

    The problem is that the pivotgrid is totally devoid of any rows/data. Looks good but is bloody emptySurprise

    To check the creation of the new table at runtime, I added a gridview at design time and then at runtime I bound it to the above table that was also created at runtime and voila, the gridview reflects all the datarows I added at runtime.

    I am sure I am probably doing a number of things wrong (or at least 'the hard way') and I would appreciate any assistance in not only fixing the immediate problem but also if my above logic is flawed.

    Thanks.

     

    Glen Harvy.
  • 9/2/2008 12:58 AM In reply to

    Re: Settings at design time and re-binding at runtime

    Hi Glen,

    Looks like you have forgot to call the DataBind method after you set the DataSource property for the PivotGrid. Is it the case?

    Thanks,
    R&D, .NET Team
    Ivan

    PS. If you wish to receive direct assistance from our Support Team, use
    Support Center at http://www.devexpress.com/Support/Center
  • 9/2/2008 2:21 AM In reply to

    Re: Settings at design time and re-binding at runtime

    Yep - I discovered this little gem of information somewhere since my orginal post. probably when I discoved a pivotgrid wasn't appropriate.

    Thanks.

    Glen Harvy.
Page 1 of 1 (3 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED