Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 21st, 2004, 08:34 AM
Friend of Wrox
 
Join Date: Sep 2003
Location: Whitstable, , United Kingdom.
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changing cursors in onmouse??? events

Hi All,

I have a bound column in a datagrid. When I hover over it,
I want the cursor to change - eg handpointer.

Can anyone point me to a code example that I should
use in the OnMouseOver event ?

Sorry - cant find a code example in the 'How to...' pages
for this one.

TIA again.

 
Old July 21st, 2004, 08:37 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You can actually do this with just a regular CSS style. Apply the following to the cells of a bound column. You will probably need to set the cssclass of Item and AlternateItem of the bound column to the css class you create for this.

.HandpointerColumn
{
    cursor: hand;
}
 
Old July 21st, 2004, 08:49 AM
Friend of Wrox
 
Join Date: Sep 2003
Location: Whitstable, , United Kingdom.
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Thanks Peter.

I just found the 'Other details' tab under the HTML/Style pane.
I didn't realise it does a lot of the work for you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Get Data from Oracle cursors k_kosaraju ADO.NET 2 January 27th, 2009 11:38 AM
MYSQL and Cursors paulkholt MySQL 1 September 8th, 2004 08:25 AM
Custom Cursors gp_mk Classic ASP Basics 0 May 29th, 2004 03:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.