TAB-key trouble

R

rainwood

I've a winform with first a panel with some textboxes on it and (not on
panel) below that a datagrid.
The problem is with using the TAB-key to go to the next column


Whenever I am in the datagrid and use the tab-key, the focus goes to the
next column.
If I am in the last column, the cursor goes to the new/next (if there is
none, new) row in the first field. For me this is the way it should respond.

The problem however is, that the same application responds different on
another computer:
If I am on another computer (strangly, both same OS and and servicepacks)
when I am in the last column and use the TAB-key, the focus goes to the
first textbox field in the panel and leaves the datagrid.


Is there a way to make sure the TAB-key always responds the same way?
(at least not leave the datagrid, this is terrible for a user when he is
adding data)
 
K

Ken Tucker [MVP]

Hi,

Maybe this will help.
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q836q

Ken
----------------
I've a winform with first a panel with some textboxes on it and (not on
panel) below that a datagrid.
The problem is with using the TAB-key to go to the next column


Whenever I am in the datagrid and use the tab-key, the focus goes to the
next column.
If I am in the last column, the cursor goes to the new/next (if there is
none, new) row in the first field. For me this is the way it should respond.

The problem however is, that the same application responds different on
another computer:
If I am on another computer (strangly, both same OS and and servicepacks)
when I am in the last column and use the TAB-key, the focus goes to the
first textbox field in the panel and leaves the datagrid.


Is there a way to make sure the TAB-key always responds the same way?
(at least not leave the datagrid, this is terrible for a user when he is
adding data)
 
R

rainwood

well know site. thanks for that.
one small problem.
for two days I am having troubles getting on that website.
any suggestion??
 
R

rainwood

If column 7 is my last column, I will set the focus automatically to the
first column in the next row.

For me this is working great. And...simple.



If (dgContent.CurrentCell.ColumnNumber = 7) Then

dgContent.CurrentCell = New DataGridCell(dgContent.CurrentCell.RowNumber +
1, 1)

End If



thanks to Ken......

:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top