PC Review


Reply
Thread Tools Rate Thread

DataGridView Cell Edit

 
 
bemanian@gmail.com
Guest
Posts: n/a
 
      14th Jan 2007
Hi,

This 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGridView Cell Edit bemanian@gmail.com Microsoft Dot NET Framework 2 16th Jan 2007 02:16 AM
DataGridView Cell Edit bemanian@gmail.com Microsoft Dot NET Framework 0 14th Jan 2007 03:56 PM
Datagridview Edit Cell keyup event Gaurangkumar Shah Microsoft C# .NET 1 11th Jan 2007 10:28 AM
Making DataGridView do row-by-row edit instead of cell-by-cell =?Utf-8?B?SGFzc2lhaA==?= Microsoft Dot NET Framework Forms 4 23rd Jun 2006 08:50 PM
How can I make DataGridView never have an active edit cell (.NET 2.0) Sebastian Pusz Microsoft ADO .NET 0 11th Oct 2004 10:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:45 AM.