GridView Editing when Displaying Multiple Fields in one Column

4 posts, 1 answers
  1. Melissa
    Melissa avatar
    5 posts
    Member since:
    Mar 2010

    Posted 25 Apr 2012 Link to this post

    I have a gridview column for full name which is made up of two fields from a database (first name + last name). When I go to edit rows in the grid, I would like display text boxes for first name and last name instead of the concatenated full name which isn't something I can edit directly. Is there a way to do this with the radgridview?  I've done something similar with NestedViewTemplate on the web side, but I'm not sure how to create this type of funcationality with winforms. Any help would be appreciated!
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 26 Apr 2012 Link to this post

    Hi Melissa, 

    You can do this by using a custom cell. Please have a look at the documentation at this link which will guide you through creating custom cells. 
    Hope that helps
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 30 Apr 2012 Link to this post

    Hello guys,

    @Melissa - Let us know if you have any difficulties implementing the custom cell with two text boxes.
     
    Greetings,
    Stefan
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  5. Melissa
    Melissa avatar
    5 posts
    Member since:
    Mar 2010

    Posted 30 Apr 2012 Link to this post

    I think I'm good...thanks for the help!
Back to Top