Changeing color of cell of grid

Discussion in 'ASP .Net Datagrid Control' started by Matthew Webster, Apr 7, 2007.

  1. 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 ***
     
    Matthew Webster, Apr 7, 2007
    #1
    1. Advertising

  2. Matthew Webster

    kingflux Guest

    On Apr 7, 9:35 am, Matthew Webster <> 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!
     
    kingflux, Apr 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. ADRIAN

    Changeing Stylesheets

    ADRIAN, Nov 5, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    374
    ADRIAN
    Nov 5, 2003
  2. =?Utf-8?B?TGVpZg==?=

    Reaching/changeing Parameter Value in Java Applet

    =?Utf-8?B?TGVpZg==?=, Dec 6, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    1,613
    =?Utf-8?B?TGVpZg==?=
    Dec 7, 2004
  3. Gabriele Farina
    Replies:
    0
    Views:
    294
    Gabriele Farina
    Feb 20, 2004
  4. Gabriele Farina

    [wxPython] changeing border color

    Gabriele Farina, May 11, 2004, in forum: Python
    Replies:
    0
    Views:
    534
    Gabriele Farina
    May 11, 2004
  5. Replies:
    4
    Views:
    301
    Mike Meyer
    Nov 12, 2005
Loading...

Share This Page