Click here to Skip to main content
15,914,163 members
Home / Discussions / C#
   

C#

 
QuestionNot able to set focus on the grid Pin
Sivaprasad C13-Mar-07 23:43
Sivaprasad C13-Mar-07 23:43 
AnswerRe: Not able to set focus on the grid Pin
Stevo Z13-Mar-07 23:51
Stevo Z13-Mar-07 23:51 
GeneralRe: Not able to set focus on the grid Pin
Sivaprasad C14-Mar-07 0:02
Sivaprasad C14-Mar-07 0:02 
GeneralRe: Not able to set focus on the grid Pin
Stevo Z14-Mar-07 0:13
Stevo Z14-Mar-07 0:13 
GeneralRe: Not able to set focus on the grid Pin
Sivaprasad C14-Mar-07 0:23
Sivaprasad C14-Mar-07 0:23 
GeneralRe: Not able to set focus on the grid Pin
Stevo Z14-Mar-07 0:39
Stevo Z14-Mar-07 0:39 
GeneralRe: Not able to set focus on the grid Pin
Sivaprasad C14-Mar-07 0:52
Sivaprasad C14-Mar-07 0:52 
GeneralRe: Not able to set focus on the grid Pin
Stevo Z14-Mar-07 1:15
Stevo Z14-Mar-07 1:15 
Now I understand Smile | :) . Generally speaking if your grid is derived from System.Windows.Forms.Control, it can recieve focus. If that control has focus and tab is pressed, any child controls inside will be focused. After last child control is focused, focus is passed to another control (on same level as your datagrid). If your Datagrid is derived from System.Windows.Forms.UserControl, it won't recieve focus, only it's children. This is default behaviout which can be changed and it's really hard to help you if u cannot change the source code.

There is one thing u can do. U can hook on GotFocus event of your datagrid. Whenn triggered, try to browse child controls of that grid and focus first one(or maybe first one of type TextBox) . But that may not work at all, depends on implementation of that datagrid...

hope that helps...
Questiondeleting an sql database Pin
Keshav V. Kamat13-Mar-07 23:40
Keshav V. Kamat13-Mar-07 23:40 
AnswerRe: deleting an sql database Pin
Pete O'Hanlon13-Mar-07 23:48
mvePete O'Hanlon13-Mar-07 23:48 
GeneralRe: deleting an sql database Pin
Keshav V. Kamat14-Mar-07 0:04
Keshav V. Kamat14-Mar-07 0:04 
Questionc# remoting problem Pin
daserca13-Mar-07 23:37
daserca13-Mar-07 23:37 
QuestionHow to display default Form's non-client menu programaticly Pin
Stevo Z13-Mar-07 23:36
Stevo Z13-Mar-07 23:36 
QuestionAccess a variable Pin
Dothanhnam13-Mar-07 23:05
Dothanhnam13-Mar-07 23:05 
AnswerRe: Access a variable Pin
Keshav V. Kamat13-Mar-07 23:11
Keshav V. Kamat13-Mar-07 23:11 
AnswerRe: Access a variable Pin
darkcalin13-Mar-07 23:13
darkcalin13-Mar-07 23:13 
GeneralRe: Access a variable Pin
Keshav V. Kamat13-Mar-07 23:20
Keshav V. Kamat13-Mar-07 23:20 
GeneralRe: Access a variable Pin
Colin Angus Mackay14-Mar-07 0:39
Colin Angus Mackay14-Mar-07 0:39 
AnswerRe: Access a variable Pin
N a v a n e e t h13-Mar-07 23:18
N a v a n e e t h13-Mar-07 23:18 
GeneralRe: Access a variable Pin
Dothanhnam13-Mar-07 23:25
Dothanhnam13-Mar-07 23:25 
AnswerRe: Access a variable Pin
Keshav V. Kamat13-Mar-07 23:25
Keshav V. Kamat13-Mar-07 23:25 
GeneralRe: Access a variable Pin
Colin Angus Mackay14-Mar-07 0:43
Colin Angus Mackay14-Mar-07 0:43 
AnswerRe: Access a variable Pin
Colin Angus Mackay14-Mar-07 0:41
Colin Angus Mackay14-Mar-07 0:41 
QuestionHelp me! Pin
Dothanhnam13-Mar-07 22:42
Dothanhnam13-Mar-07 22:42 
AnswerRe: Help me! Pin
Keshav V. Kamat13-Mar-07 22:48
Keshav V. Kamat13-Mar-07 22:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.