Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Changeing color of cell of grid

Reply
Thread Tools

Changeing color of cell of grid

 
 
Matthew Webster
Guest
Posts: n/a
 
      04-07-2007
We are making a theatre booking system and we want the
cell of grid to change color when we click on it.




*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
kingflux
Guest
Posts: n/a
 
      04-07-2007
On Apr 7, 9:35 am, Matthew Webster <mufaddal...@yahoo.com> wrote:
> We are making a theatre booking system and we want the
> cell of grid to change color when we click on it.
>
> *** Sent via Developersdexhttp://www.developersdex.com***


Hello, Matthew-- I'm doing something like that in my app. Maybe this
will work for you:

<asp:TextBox id="textbox1" runat="server"
onclick="this.style.background-color='#FFFF99'; this.select()"></
asp:TextBox>


Google for javascript style attributes to see a comprehensive list.

Hope that helps!

 
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
changeing a files icon in winXP don Computer Support 1 05-11-2005 09:17 PM
Reaching/changeing Parameter Value in Java Applet =?Utf-8?B?TGVpZg==?= ASP .Net 3 12-07-2004 06:45 AM
[wxPython] changeing border color Gabriele Farina Python 0 05-11-2004 06:46 PM
changeing name of computer owner kb9 Computer Support 4 02-09-2004 06:09 AM
Changeing Stylesheets ADRIAN ASP .Net 0 11-05-2003 05:33 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