|
-
Jul 2nd, 2008, 10:52 AM
#1
Thread Starter
Addicted Member
[RESOLVED] [2008] DataGridView focus problem
Hi,
I've got a DataGridView which isn't receiving the focus.
I've got a bound DataGridView, and bound TextBoxes, so when the user scrolls through the grid, the text boxes display data associated with whatever is selected in the grid.
The user can press "U" (to update) the data, and a TabControl containing the text boxes becomes enabled so the user can make some changes.
What I'm finding is that if the user abandons the changes (where all the TextBoxes, Combo's revert back to their original state), I can't put the focus back to the DataGridView UNLESS I put a messagebox in (perhaps saying "Changes abandoned" - which might be ok, anyway).
If I don't put the message box in, the focus moves to the menus.
Its as if delaying the DataGridView.Focus, via the messagebox, allows the .Focus to work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|