Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Datagrib Navigation (arrow up/down)

Status
Not open for further replies.

johnpienaar

Technical User
Jun 23, 2004
18
0
0
ZA
Hi

I've got a standard VS datagrid (I'm developing in visual studio 2003) and I've converted a few columns to template columns and replaced the labels with textboxes for input.

The tab navigation moves from left to right, but I would like the users to be able to navigate through the cells with the arrow keys (ie up/down, left and right)

Does anyone know how I can accomplish this?

Help would be greatly appreciated

John
 
If you are talking about when the row is in edit mode, you need to set the TabIndex property of each control.
 
You'll have to use javascript but it won't be that easy as you'll have to add the javascript once the user invokes the edit (as I'm assuming that's where you want the navigation to take place) and you'll have to find each of the client id's for the textboxes by using FindControl to get a reference to each TextBox.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
John,
did you ever figure out the javascript code to your question? I've got the same issue.
kat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top