Anytime a grid event is handled, a notification will pop-up and fade out.
This helps identify when, and in what order, events are being handled without explicitly having to set breakpoints and wait for the code to catch each event.
When the user types the reference directly the information about the product will be filled in the other columns and the user can choose the quantity he wants and it will do the calculation.
ALSO, I tried to put the total of the bill in the datagrid...
Platforms: Windows Vista, Windows XP, Windows Server 2008, Windows Server 2003, Windows 2000, Windows Me and Windows 98, including 32 bit and 64 bit editions where applicable.
Abstract: Data Grid View control is a Windows Forms control that gives you the ability to customize and edit tabular data.
Still, it doesn’t make much sense when we think about the way Check Box’s work, in that, they can only ever be On or Off, and that once you have made your selection, you’re probably pretty confident that you want to change the value.
Any solution is going to involve using an event that definitely will fire to stop the Data Grid View from thinking it’s in edit mode.
The Cell End Edit event occurs when edit mode is being ended, and provides the event handler with the ability to modify the text to be placed into the Active Cell, or force edit mode to continue.
The Cell End Edit event is always invoked on the thread which created the workbook view control, and a lock is always acquired on the workbook set associated with the workbook view control before Cell End Edit is invoked.
You might want to handle this for a number of reasons: to enable a save button, to change the appearance of selected items, to display a pop-up window, or to check for consistency against other choices.