As I said earlier I am using DatagridView in winforms and not gridview in ASP.NET.
Template columns are possible in gridView only. Thank you. On Sep 3, 4:59 pm, Davaasuren Nyamjav <[email protected]> wrote: > 1. Add TemplateField in Colums > 2. Go to Edit Template > 3. Select ItemTemplate > 4. Drop whatever control you like to use (such as textbox in ur case) > > > > > > On Fri, Sep 3, 2010 at 3:42 PM, R <[email protected]> wrote: > > Template column is in gridview in ASP.NET not in datagridview in > > windows forms. > > > On Sep 3, 2:52 pm, Jamie Fraser <[email protected]> wrote: > > > TemplateColumn > > > > On Fri, Sep 3, 2010 at 9:23 PM, R <[email protected]> wrote: > > > > 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 | $20000 | $25000 | $30000 > > > > | A | $18000 | $26000 | $29000 > > > --------------------------------------------------------------------------- > > > > Expenses | T | $10000 | $10000 | $10000 > > > > | A | $9000 | $10000 | $12000 > > > --------------------------------------------------------------------------- > > > > 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.- Hide quoted text - > > > > - Show quoted text - > > -- > David Nyamjav > --------------------------------------------------- > Tel: 213-453-3248 > Email: [email protected] Hide quoted text - > > - Show quoted text -
