Advertisement

06.07.2008 at 12:56PM PDT, ID: 23466438
[x]
Attachment Details

How to commit cell edit in DataGridView VB.net 2.0

Asked by jaydwest in Visual Studio .NET 2005, Microsoft Visual Basic.Net

Tags: VB.net 2.0, Visual Basic 2005, Windows Forms

I'm trying to create a highly interactive DataGridView using VB.net 2.0.  This is a lot of work.  I would like to be able to commit & save changes made to a text box when a user enters a value and leaves the text box without pressing {tab} or {Enter} or drop down list box when a user clicks on the desired option and leaves the drop down list box withour pressing {Tab} or {Enter} key.  

I'm using the CellBeginEdit event to set a property DGVIsDirty when the user enters a text box or drop down list box, so I know the user has made (or is about to make) an edit/entry.  If the user presses the {Enter} or {Tab} key the entry is committed and saved,  However if the user clicks out of the DGV, the data is not saved.  I will be on the phone for the rest of my life supporting users if the user is forced to press {Enter} or {Tab}.  

HELP!  HELP!   VB.net is putting me in the Nut House.

Start Free Trial
[+][-]06.07.2008 at 01:22PM PDT, ID: 21736691

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.07.2008 at 01:25PM PDT, ID: 21736700

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.07.2008 at 01:44PM PDT, ID: 21736750

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.07.2008 at 01:50PM PDT, ID: 21736763

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.07.2008 at 01:56PM PDT, ID: 21736775

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio .NET 2005, Microsoft Visual Basic.Net
Tags: VB.net 2.0, Visual Basic 2005, Windows Forms
Sign Up Now!
Solution Provided By: jpaulino
Participating Experts: 1
Solution Grade: B
 
 
[+][-]06.07.2008 at 02:01PM PDT, ID: 21736788

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.07.2008 at 03:12PM PDT, ID: 21736930

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628