Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

Gridview Edit

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adam - 04 Oct 2007 14:02 GMT
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 - 07 Oct 2007 16:16 GMT
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

> Hi All,
>
[quoted text clipped - 11 lines]
> Cheers,
> A

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.