This is a migrated thread and some comments may be shown as answers.

Multiple controls in a cell

2 Answers 98 Views
GridView
This is a migrated thread and some comments may be shown as answers.
neebs
Top achievements
Rank 2
neebs asked on 19 Oct 2010, 05:30 PM
Hello,

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 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 19 Oct 2010, 09:57 PM
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
0
Martin Vasilev
Telerik team
answered on 22 Oct 2010, 04:23 PM
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
Tags
GridView
Asked by
neebs
Top achievements
Rank 2
Answers by
Emanuel Varga
Top achievements
Rank 1
Martin Vasilev
Telerik team
Share this question
or