Make DataGrid TemplateColumn read-only in code

Discussion in 'ASP .Net' started by Bob, Jul 9, 2003.

  1. Bob

    Bob Guest

    I have a data grid with a template column. Sometimes I
    need this column to be read-only, even in edit mode.
    Does anyone know how to do this. I get the other columns
    by running through the DataGrid.Columns and testing for
    column type. Then I can set ReadOnly for Bound columns or
    make the Edit or PushButton columns invisible, but I
    can't seem to do this with a template column.
    Is there any way to access the control used in
    EditItemTemplate for the TemplateColumn in code?

    Thanks
     
    Bob, Jul 9, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ricardo
    Replies:
    2
    Views:
    6,843
    David Alpert
    Apr 11, 2005
  2. Jim Bancroft

    TemplateColumn-- how to make it zero width?

    Jim Bancroft, May 16, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    453
    Eliyahu Goldin
    May 17, 2005
  3. keithb
    Replies:
    2
    Views:
    8,076
    keithb
    Jun 7, 2006
  4. =?Utf-8?B?TXJDcm9vbA==?=

    Using TemplateColumn and DataGrid in code

    =?Utf-8?B?TXJDcm9vbA==?=, Aug 4, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    4,536
    =?Utf-8?B?TXJDcm9vbA==?=
    Aug 7, 2006
  5. Ricardo
    Replies:
    2
    Views:
    160
    David Alpert
    Apr 11, 2005
Loading...

Share This Page