Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > DataGrid TextBox leave event
 

DataGrid TextBox leave event

Hello.  I don't know how to explain this but i'll try.

I have a form with numerous textboxes and one datagrid.  It all works fine until I navigate around the DataGrid.  For some reason when the datagrids currentCellChanged event fires it also fires the first textbox's enter and leave event.

It seems as if before it can move to the next cell it enters the textbox.

I have no idea why this is happening.  Has anyone experienced such an occurence???  It's got me baffled and my boos anoyed so any help will be greatfully recieved.


Thanks

Matt
MigrationUser 1  Thursday, January 30, 2003 11:30 AM
Matt...  can you post the code ?
MigrationUser 1  Thursday, January 30, 2003 2:35 PM
There is no code that I can actually give you.  If I put a*space
space*point in the TextBox enter and leave events and in the DataGrid's CellChanged Event they execute in this order every time I move cells:

TextBox_Enter
TextBox_Leave
DataGrid_CellChanged

Any ideas??

Matt

p.s. the code is VERY LARGE so if there is a specific part you may be problematic then can you point it out
MigrationUser 1  Friday, January 31, 2003 4:12 AM
Matt.. I tried something similar, 1 datagrid and textbox , put textbox enter, leave and cellchange on the grid ...but didn't get what happened to you... 

could you try posting the
CellChanged, TextBox_Enter, TextBox_Leave and PageLoad code ?

sorry can't help you much right now, but I prob will have a clue of what's going on if I see some of the code

dr
MigrationUser 1  Friday, January 31, 2003 8:44 AM

You can use google to search for other answers

Custom Search

More Threads

• How to disable a DataGridViewRow? Need user selected rows to be visible yet disabled and darkened.
• 2 BindingSources With same Datatable
• How to change cell font in a DataGridView control?
• How to find a record in a databound form
• XP 64-bit Datagridview redraw extremely slow
• binding dataview to datagrid in .net 2003
• Connecting a ComboBox to a different table in DataGridView
• Row coloring dissapears in DataGridView after DataTable.AcceptChanges
• Binding to static dropdownlist
• How to: Populate DataGridView (C# + DAAB)