Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

move in datadrid using ENTER key

Hello,

I need to move by a datagrid using ENTER key instead of TAB key. I just want that when I'm editing a row, pressing enter I go to the next row in next column. Anyone knows how can I do it?

Thanks
0
jbadia
Asked:
jbadia
  • 5
  • 4
1 Solution
 
blue-genieCommented:
to use the enter key your dataGrid must be editable. then you'll go from one row to the next.

blu.
0
 
jbadiaAuthor Commented:
yes, I have my datagrid editable = true, but when I press enter, i don't go to the next column as I want
0
 
blue-genieCommented:
what is it doing when you press enter now?

what version of flash are you using?
as i see it here, pressing tab takes you to the next column - same row.
pressing enter, takes you to the next row, within the same column - so you want to swap the functionality around?


0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
jbadiaAuthor Commented:
Im' using MX 2004. If I press Enter, I go to next row, and Tab to next column. I want that when pressing enter, move to next column, like when I press tab
0
 
blue-genieCommented:
then what you're trying to do is change the actual functionality of the component.

create a duplicate of your component and its class files, and edit it there.

blu.
0
 
jbadiaAuthor Commented:
how can I edit My class files? Where are them?
0
 
blue-genieCommented:
it's quite a hectic procedure.

if you look inside your program files folder

your path should look something like:
C:\Program Files\Macromedia\Flash MX 2004\en\Configuration\ComponentFLA

there's a standard components fla in there, what you should do is make a copy it.

then you'll find your datagrid classes somewhere in

C:\Program Files\Macromedia\Flash MX 2004\en\First Run\Classes\mx\controls

you should make a new component so as to not f**k up the original, so make a copy of the class as well, and change your pointers accordingly.

if i get a chance I"ll have a look at it, but as far as I know, its not an easy task.

You'll need to be pretty clued up on OOP and AS2.

blu.
0
 
jbadiaAuthor Commented:
ok, thanks, i think I'll desist!
0
 
blue-genieCommented:
good choice :-)

0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now