Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
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 March 15th, 2004, 01:58 PM
Registered User
 
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Navifating thru TextBox Grid like Excel cells

Hello Everybody
My page consists of a grid of textboxes just like the cells in any
Spreadsheet. I would like control in the page to be shifted in the same
way as an Excel sheet i.e. with the Arrow Keeys & Enter Key
Can It be Done ?


 
Old March 15th, 2004, 04:34 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Yes it can be done. You need to capture the onKeyDown, onKeyPress or onKeyUp event. Then you can test event.keyCode for the desired key code(s) and perform a <textbox>.focus() on the appropriate textbox based on which key was pressed.

Up Arrow = 38
Down Arrow = 40
Right Arrow = 39
Left Arrow = 37

Keep in mind that if someone is trying to edit a cell, and they want to use the arrow keys to move along the text, they'll have problems.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old March 16th, 2004, 01:48 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

If u ask me i'd prefer to do it with some Java-applets or a flash! U might have many problems, later.

Always:),
Hovik Melkomian.





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP to Excel BUT show Excel grid lines mat41 Classic ASP Basics 8 May 31st, 2009 05:56 PM
how to merge cells in MS Flex Grid control manishdev Beginning VB 6 0 June 6th, 2007 09:03 AM
Selecting all cells of an excel sheet sanketaradhye Beginning VB 6 1 April 25th, 2007 02:26 AM
merging excel cells anoopkpanicker Beginning VB 6 1 March 26th, 2007 05:11 PM
Merge Cells in Grid tiyyob .NET Framework 2.0 1 August 1st, 2006 04:42 AM





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