GridView Control - Disable/Enable Row Editing

Discussion in 'ASP .Net' started by Mel, Jul 30, 2007.

  1. Mel

    Mel Guest

    I want to disable the editing of a row in my gvParts GridView
    control. How? I need to evaluate the value of one Template Field to
    determine if the record should be edited or not but the template field
    always returns an empty string. Any ideas?
    Mel, Jul 30, 2007
    #1
    1. Advertising

  2. Mel

    Larry Bud Guest

    On Jul 30, 9:24 am, Mel <> wrote:
    > I want to disable the editing of a row in my gvParts GridView
    > control. How? I need to evaluate the value of one Template Field to
    > determine if the record should be edited or not but the template field
    > always returns an empty string. Any ideas?


    Turn the Edit column into a template and put your logic in the
    "visible" attribute.
    Larry Bud, Jul 30, 2007
    #2
    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. misiek
    Replies:
    7
    Views:
    50,196
    Sri123
    Apr 8, 2011
  2. K B
    Replies:
    1
    Views:
    3,507
    Craig Deelsnyder
    Apr 19, 2006
  3. =?Utf-8?B?Z3V5?=

    GridView -enable editing

    =?Utf-8?B?Z3V5?=, Oct 30, 2007, in forum: ASP .Net
    Replies:
    5
    Views:
    1,132
    =?Utf-8?B?Z3V5?=
    Oct 30, 2007
  4. Andrew Jocelyn
    Replies:
    2
    Views:
    1,520
    Allen Chen [MSFT]
    Apr 27, 2009
  5. ashan

    How to enable and disable a single row in a datagrid?

    ashan, Jul 22, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    131
    Eliyahu Goldin
    Jul 23, 2006
Loading...

Share This Page