467,081 Members | 1,228 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,081 developers. It's quick & easy.

Binding data to the custom DataGridView


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 panel control. I have added label as button on panel control to display

data from datasource on to datagrid and create a binding source. Another Label which act as a button is used to update data from grid to


Issue: I pressed show label to display data in a dsatagridview. Modified the grid cell value and immediately pressed update label which is on

same panel control. 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 like the row below where I entered something, 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.

I have also seen same kind of problem on this forum, but unfortunately the author got the answer and didnt post it back.

here is that URL:


Please help me.
Nov 6 '09 #1
  • viewed: 1624

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

19 posts views Thread by Simon Verona | last post: by
reply views Thread by Tommaso Caldarola | last post: by
3 posts views Thread by =?Utf-8?B?Sm9obiBCdW5keQ==?= | last post: by
1 post views Thread by GS | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.