Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Gridview Edit

Reply
Thread Tools

Gridview Edit

 
 
Adam
Guest
Posts: n/a
 
      10-04-2007
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


 
Reply With Quote
 
 
 
 
Sajjad Haider
Guest
Posts: n/a
 
      10-07-2007
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
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView Hierarchical View - Gridview in Gridview =?Utf-8?B?bWdvbnphbGVzMw==?= ASP .Net 1 05-09-2006 06:48 PM
GridView control enters edit mode when I click Edit link twice Jaime Stuardo ASP .Net Web Controls 0 04-07-2006 12:47 AM
GridView edit validation, edit dropdown list, delete popup confirm =?Utf-8?B?a2Vu?= ASP .Net 1 01-23-2006 12:51 PM
Snapshot restraint - edit, edit, edit Alan Browne Digital Photography 24 05-10-2005 10:15 PM
Snapshot restraint - edit, edit, edit Patrick Digital Photography 0 05-06-2005 10:53 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57