Setting a textbox in a GridView to ReadOnly?

Discussion in 'ASP .Net' started by swep, Nov 14, 2006.

  1. swep

    swep Guest

    I have a Gridview control that has 5 columns. When a user selects
    "Edit", I'd like to make 3 of the columns set to "Readonly". However,
    when I set the 3 column's boundfield properties to "ReadOnly=True", the
    update does not work. Is there a way to set the readonly property to
    "true" for some of the columns' textbox properties and not the others?
    -swep
     
    swep, Nov 14, 2006
    #1
    1. Advertisements

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. doug albright
    Replies:
    0
    Views:
    562
    doug albright
    Aug 30, 2003
  2. Angela Chen
    Replies:
    3
    Views:
    9,384
    parshuram
    Dec 6, 2004
  3. Replies:
    4
    Views:
    1,193
    Zoe Brown
    Sep 12, 2005
  4. =?Utf-8?B?SmltIEhlYXZleQ==?=

    Textbox Readonly

    =?Utf-8?B?SmltIEhlYXZleQ==?=, Jun 30, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    650
    =?Utf-8?B?SmltIEhlYXZleQ==?=
    Jun 30, 2005
  5. =?Utf-8?B?THluZXJz?=

    conditional readonly textbox in a datagrid

    =?Utf-8?B?THluZXJz?=, Nov 11, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    3,431
    =?Utf-8?B?THluZXJz?=
    Nov 11, 2005
  6. ThunderMusic

    Disapearing cursor on some Readonly textbox

    ThunderMusic, Jan 23, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    1,060
    ThunderMusic
    Jan 23, 2006
  7. ShaneFowlkes
    Replies:
    9
    Views:
    9,798
    ShaneFowlkes
    Apr 12, 2006
  8. Jonathan Hyatt
    Replies:
    1
    Views:
    2,997
    Jonathan Hyatt
    Jun 8, 2004
Loading...