Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello there...

 

Why is it that when i press <enter> or <return> inside a datagrid it will not call the forms acceptbutton unless i physically click the mouse inside the datagridcell and then press either <return> or <enter>??

 

How can i fix this problem so that no matter where or when i press either the <return> or <enter> button the acceptbutton.click event will be fired?

 

It's almost as if it doesn't see that the datagridtextboxcolumn does not see the <enter> or <return> button during editing, as it will only fire when focus has been taken away from that cell and then clicked the cursor back into it with the mouse?

 

Please someone help me with this???

 

 

Thanks,

michelle

  • 1 year later...
Posted

Hi,

When we click on the cell only the TextBox in the DataGridTextBoxColumn Instantiates. Before that it is just a label to see the data. Whenever you click on the cell it will show u the textbox. It is because that to reduce the consumption of memory. If the control is instantiated initially and if the grid is having 100 of rows then 100 instances of the text boxes will be in the memory which is not feasible.

 

regards,

ramnadh.

 

Why is it that when i press <enter> or <return> inside a datagrid it will not call the forms acceptbutton unless i physically click the mouse inside the datagridcell and then press either <return> or <enter>??

 

How can i fix this problem so that no matter where or when i press either the <return> or <enter> button the acceptbutton.click event will be fired?

 

It's almost as if it doesn't see that the datagridtextboxcolumn does not see the <enter> or <return> button during editing, as it will only fire when focus has been taken away from that cell and then clicked the cursor back into it with the mouse?

 

Please someone help me with this???

 

 

Thanks,

michelle

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...