All,
I have a customized DataGridView where I have implemented extra functionality and bounded datasource in the same custom DataGridView (Using C# and .NET). Now, I could able to use it properly by placing it on a Tab control. I have added Add button on tab control to add a new row and added a Save button on a main form where the above mentioned Tab control has been placed.
Issue: I pressed Add button to create an empty row (Here, the cell value is null). Modified the grid cell value and immediately pressed Save button which is on main form. I observed that, the cursor is still in the grid cell when I press Save button. While saving, the cell value is null even though I have entered something in the presentation layer. My expected behaviour is to get the modified value while saving.
Special Case: After typing something in the grid cell, if I click on somewhere else before I click on Save button, it is working fine. (Here, mainly I tried to remove the focus from the currently modified cell)
Is there any way to bind sources before I click on save button? Please suggest me.
Please feel free to ask me if you need any information.