Multiple controls in a cell

3 posts, 0 answers
  1. neebs
    neebs avatar
    106 posts
    Member since:
    Apr 2007

    Posted 19 Oct 2010 Link to this post


    I've done this in an ASP.NET application, now I need to do it in a WinForms application. I've attached an image of the web page that illustrates what I need to do. I need to programmatically create columns that contain a checkbox and a textbox. So it's really two issues, but the programmatic creation of columns is not really an issue as I've already done this. But since I don't know the columns at design time, I need to bind the grid to a DataTable I populate in code, rather than define them in design mode. However I need each cell to contain two controls, that are both live. When the user interacts with either control I need to highlight the cell to indicate that it has been modified. Really the only thing I think I could use an example for is two controls in a cell. See the attached image.

    Thanks, Steve
  2. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 19 Oct 2010 Link to this post

    Hello Neebs,

    Please take a look at this thread, my last post will provide a way of doing this, but like i said there, i would suggest Just a CheckBoxColumn with a TextBoxEditor.

    Hope this helps, if you have any other questions or comments, please let me know,

    Best Regards,
    Emanuel Varga
  3. Martin Vasilev
    Martin Vasilev avatar
    1061 posts

    Posted 22 Oct 2010 Link to this post

    Hi Steve,

    In addition to Emanuel's suggestions I would like to point you to this knowledge base article. There you can find some hints on how to create a custom cell, which contains more than one element.

    Do not hesitate to write again if you have any additional questions.

    Kind regards,
    Martin Vasilev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top