DataGridView before select change event


hi, have grid , textbox controls binded grid. each time when select new row, able re bind those controls. , if want modify data, can modify text on controls , hit update button, grid updated. question if change new row after modify control without hitting update button. so, grid not updated , data can not saved. case, have popup window give warning. how can make happen, since everyting modify on control, not on entity that compiler  doesn't know has been changed. are  there better solutions ?

how have databound grid , textboxes? if done correctly, 2 should in sync , when user types in textbox, shouldn't have click button put textbox data grid, should automatically that.

i have old blog post that:

http://geek-goddess-bonnie.blogspot.com/2009/09/keeping-datagrids-and-other-ui-controls.html

i should update post include using a bindingsource in examples, concept same. if suggestions in blog don't you, post databinding code here please?


~~bonnie berent dewitt [c# mvp]

geek-goddess-bonnie.blogspot.com



Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'