Gridview Edit

Discussion in 'ASP .Net' started by Adam, Oct 4, 2007.

  1. Adam

    Adam Guest

    Hi All,

    I have a grid view which contains an edit button (ie: CommandName="Edit").

    When clicked this button displays a form view with the required details
    displayed.

    Problem: When this buttons is clicked it is sending the Grid View into edit
    mode, thus
    displaying unwanted text boxes etc in the Grid.

    Is there a way of stopping this?

    Cheers,
    A
    Adam, Oct 4, 2007
    #1
    1. Advertising

  2. hi,

    You have to use the css class, place a name of css class in the properties
    of the label and textboxes

    Code / Set the following properties

    Label1.class = "labeltext"
    Textbox1.class = "inputtext"



    CSS File

    ..labeltext {
    background-color:Yellow;
    }
    ..inputtext {
    background-color:#e1e1e1;
    }


    Hyder

    "Adam" <adamatlondonbaby.com.au> wrote in message
    news:...
    > Hi All,
    >
    > I have a grid view which contains an edit button (ie: CommandName="Edit").
    >
    > When clicked this button displays a form view with the required details
    > displayed.
    >
    > Problem: When this buttons is clicked it is sending the Grid View into
    > edit mode, thus
    > displaying unwanted text boxes etc in the Grid.
    >
    > Is there a way of stopping this?
    >
    > Cheers,
    > A
    >
    Sajjad Haider, Oct 7, 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. San Diego Guy
    Replies:
    0
    Views:
    534
    San Diego Guy
    Aug 7, 2003
  2. Schultz
    Replies:
    3
    Views:
    547
    =?Utf-8?B?QmlsbCBCb3Jn?=
    Feb 14, 2005
  3. =?Utf-8?B?a2Vu?=
    Replies:
    1
    Views:
    10,315
    Wiktor Zychla [C# MVP]
    Jan 23, 2006
  4. Sharon McCarty
    Replies:
    0
    Views:
    243
    Sharon McCarty
    Nov 24, 2004
  5. Jaime Stuardo

    GridView control enters edit mode when I click Edit link twice

    Jaime Stuardo, Apr 7, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    383
    Jaime Stuardo
    Apr 7, 2006
Loading...

Share This Page