-----------------------------------------------------------
New Message on cochindotnet
-----------------------------------------------------------
From: Z?�n
Message 2 in Discussion
Primarity when you use the datagrid
you can bind a keypress event to the form ..
There are few point you might have
to consider for this.
1. To enable selection you mean
color changing right.. (or setting some hidder field inside the grid with client
side code. )
( this will be necessary When
you submit this data if you need to know the currently selected item in the
grid)
2. I havent yet seen implementation
yet.. but maybe im just unaware of any samples existing like this. but if this
is your requiremtn you will have to right a key event handhler for the form ..
eg: after user
clicks on teh grid you can set a flag which hold this ..
and if gridclicked and arrow key pressed you can find out
what arrow key is pressed and execute a client side code to change the color or
set the hidden field etc.
Basically its client side
manipulation . and css and quite less of server side
<HTML>
<HEAD>
<SCRIPT LANGUAGE = "JavaScript">
function showKey(e) {
alert("You pressed: " + String.fromCharCode(e.which) + ".");
}
window.captureEvents(Event.KEYPRESS);
window.onKeyPress = showKey;
</SCRIPT>
</HEAD>
<BODY>
<TABLE WIDTH = "100%" HEIGHT = "100%" BORDER = "0">
<TR>
<TD ALIGN = "CENTER" VALIGN = "MIDDLE">
<DIV STYLE = "font-size: 12px;">
A Simple Demo of Events and Keys in Navigator 4
</DIV>
<DIV STYLE = "font-size: 72px; color: darkgreen;">
Press A Key
</DIV>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/cochindotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]