By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,693 Members | 1,255 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,693 IT Pros & Developers. It's quick & easy.

I Want TAB-key to out of datagrid and go to next control

P: n/a
I assume that it is not hard problem.

I would like user to only click in datagrid to select whole row - DONE
I would like user to select whole row using UP and DOWN arrows. - DONE.

And I would like to move to the next control with TAB key!
TAB key in datagrid moves between colums...
I don't TAB do change colums - I want TAB to move to next control - or
previous with SHIFT+TAB...

I think it is not easy problem :(
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
I think this should do the trick.

1. Set the Form.Keypreview to true
2. Capture the Tab key in the keypress event of the form.
3. If Tab key pressed and DataGrid has focus, move the next control.

There is a way to move the next control in the tab order using a function,
but I can't recall what it is off the top of my head. Hope this helps.

Chris
"chreo" <ch***@gazeta.pl> wrote in message
news:d1**********@inews.gazeta.pl...
I assume that it is not hard problem.

I would like user to only click in datagrid to select whole row - DONE
I would like user to select whole row using UP and DOWN arrows. - DONE.

And I would like to move to the next control with TAB key!
TAB key in datagrid moves between colums...
I don't TAB do change colums - I want TAB to move to next control - or
previous with SHIFT+TAB...

I think it is not easy problem :(

Nov 21 '05 #2

P: n/a
If e.KeyCode = Keys.Tab and dgrPaczki.focused

then move to text control?

But...datagrid.focused is error : -(

Użytkownik "Chris" <No****@NoSpam.com> napisał w wiadomości
news:e1**************@TK2MSFTNGP14.phx.gbl...
I think this should do the trick.

1. Set the Form.Keypreview to true
2. Capture the Tab key in the keypress event of the form.
3. If Tab key pressed and DataGrid has focus, move the next control.

There is a way to move the next control in the tab order using a function,
but I can't recall what it is off the top of my head. Hope this helps.

Chris
"chreo" <ch***@gazeta.pl> wrote in message
news:d1**********@inews.gazeta.pl...
I assume that it is not hard problem.

I would like user to only click in datagrid to select whole row - DONE
I would like user to select whole row using UP and DOWN arrows. - DONE.

And I would like to move to the next control with TAB key!
TAB key in datagrid moves between colums...
I don't TAB do change colums - I want TAB to move to next control - or
previous with SHIFT+TAB...

I think it is not easy problem :(


Nov 21 '05 #3

P: n/a
:-(
How is it posiible that since so many years nobody found out how to use
datagrid like...for example listbox.

TAB ---> I am in datagrid
UP,DOWN ---> Move beteween rows (full row selected)
TAB ---> Leave datagrid and go to next control

Sounds easy but nobody can solve that problem.
I found some solution to select full row (by mouse and by arrows UP, DOWN)
But no solution to leave datagrid with TAB.
TAB leaves current cell and go to next cell in datagrid but
I want that key to leave datagrid!!! wrrrrr... :)
Nov 21 '05 #4

P: n/a
isn't it dgrPaczki.focus not focused?

Chris
"chreo" <ch***@gazeta.pl> wrote in message
news:d1**********@inews.gazeta.pl...
If e.KeyCode = Keys.Tab and dgrPaczki.focused

then move to text control?

But...datagrid.focused is error : -(

Użytkownik "Chris" <No****@NoSpam.com> napisał w wiadomości
news:e1**************@TK2MSFTNGP14.phx.gbl...
I think this should do the trick.

1. Set the Form.Keypreview to true
2. Capture the Tab key in the keypress event of the form.
3. If Tab key pressed and DataGrid has focus, move the next control.

There is a way to move the next control in the tab order using a
function, but I can't recall what it is off the top of my head. Hope
this helps.

Chris
"chreo" <ch***@gazeta.pl> wrote in message
news:d1**********@inews.gazeta.pl...
I assume that it is not hard problem.

I would like user to only click in datagrid to select whole row - DONE
I would like user to select whole row using UP and DOWN arrows. - DONE.

And I would like to move to the next control with TAB key!
TAB key in datagrid moves between colums...
I don't TAB do change colums - I want TAB to move to next control - or
previous with SHIFT+TAB...

I think it is not easy problem :(



Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.