Welcome to the Xceed Community | Help
Community Search  

Creating a Column from Code behind

Sort Posts: Previous Next
  •  08-28-2008, 7:48 AM Post no. 14599

    Creating a Column from Code behind

    Hi all,

    I have a DataGridControl , i attached the datasource to the grid through DataGridCollectionView.... Now i want to add a column at run time to the same DataGridControl , but this column will have a different DataSource. How can i get this ??? If i am not clear to you i can clarify more ..........

  •  08-28-2008, 8:34 AM Post no. 14601 in reply to 14599

    Re: Creating a Column from Code behind

    I don't think you can do this.  The grid can only have one active datasource at a time.

    To implement that behaviour, you need to have a datasource that encapsulates the other column (like an n-tier environment), integrating it into the datasouce the grid will use.

    Now, I suppose it would be possible to have a calculated (unbound) column that could grab data from elsewhere (like a converter)...don't know if that methodology would work for you though.

    Peace, Love, and Light,

    /s/ Jon C. Munson II

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.