TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Fia Karlsson
NA
4
0
How to use the Enter and Tab key in Grid to go to the new row (the row with an asterix)
Aug 1 2006 5:42 PM
Hi
I have made my DataGrid move to the next cell on TAB and Enter (the code
below) and it
works fine, but when standing in the first cell on the new row (last row)
and pressing TAB or Enter the cursor moves to the second cell on the
PREVIOUS row and not the new row. Why? And if I MOUSE_CLICK in the first
cell on the new row, I can press TAB and it works fine. Is there a way I can
make pressing the TAB work like Mouse_Clicking the new row??
Protected Overrides Function ProcessCmdKey(ByRef msg As
System.Windows.Forms.Message, ByVal Keys As System.Windows.Forms.Keys) As
Boolean
If (msg.WParam.ToInt32() = CType(Keys.KeyCode.Enter, Integer)) Then
Keys.Send("{Tab}")
Return True
End If
Return MyBase.ProcessCmdKey(msg, Keys)
End Function
Please HELP!!!
Fia
Reply
Answers (
0
)
Does XML Value equal Class Value?
DataGrid and TextBox binding problem....