|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataGridView Cell EditThis is a simple DataGridView in a windows form which contains a number of other controls as buttons, text boxes and so on. The problem is when the data grid cell editing is conducted via the entries by the keyboard, combined by entries via the other control buttons (within the win-form). It seems pressing any other control within the form suspends the cell editing, expectedly. Then the insertion of the characters into the cell via the other buttons would erase the entire cell content and start the process all over again. Everything continues then on, even if the key entries are attempted, until you use the character insertions via the form buttons. This is due to selection of the entire cell content and change of selectstart property to zero, when the switch from keyboard to form entries take place. Not a big deal if the metrics are captured via an event, and reestablished prior to the form control entries? The problem is using either EndEdit or Parsing events for the data grid, show the SelectionLength and SelectionStart as full text length and zero respectively (full text selection by the framework, and move of the cursor to the start of the text content), and there is no event to be utilized as the key entries into the grid cell is performed. Any idea! Regards, Reza Bemanian |
|||||||||||||||||||||||