Datagridview with custom columns containing user defined control - TechRepublic
Question
September 3, 2010 at 01:29 PM
rsimlote

Datagridview with custom columns containing user defined control

by rsimlote . Updated 15 years, 10 months ago

How can I create a custom column in datagridview that displays data in a user control.
In the datagridview I have to show the Goal value and it corresponding Achieved value for each year.

ex:
| 2010 | 2011 | 2012
=================================
Earnings | T | $20K | $25K | $30K
| A | $18K | $26K | $29K
———————————-
Expenses | T | $10K | $10K | $10K
| A | $9K | $10K | $12K
———————————-New Hire | T | 20 | 10 | 6
| A | 22 | 10 | 5

So I need two textboxes showing in the cell at the same time (both when the cell is in the display mode and when it is in Editing mode)

Can this be achieved? Any other ideas are more than welcome.

Thank you.

This discussion is locked

All Comments