How can I get more than one data field into a column?

3 posts, 1 answers
  1. Rod
    Rod avatar
    71 posts
    Member since:
    Jan 2011

    Posted 25 Mar 2013 Link to this post

    In the examples I've found, related to the RadGridView control, when it comes to columns they use the GridViewDataColumn, which appears to me to bind to just one data element from the collection the grid view is bound to. I'd like to bind to 3 data elements in one column with the RadGridView. Specifically, I'd like to bind to the client's last name, first name and generation. (e.g.: "Smith, John" or "Smith Jr., John"). And then the column's header will simply say, "Client's Name". How do I do that?
  2. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 26 Mar 2013 Link to this post

    Hi,

     You can specify your own CellTemplate for desired column where you can declare any number of TextBlocks or other components bound to nay number of properties. 

    Please check our demos for more info!

    Regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Rod
    Rod avatar
    71 posts
    Member since:
    Jan 2011

    Posted 26 Mar 2013 Link to this post

    CellTemplate did the trick, thanks, Vlad.
Back to Top