Inheriting from DataGridTextBoxColumn and CancelEdit

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

I have a combo box that inherits from DataGridTextBoxColumn. Everything
works fine with the control except a CancelEdit(). The underlying rows'
value is rolled back but the DataGrid column still displays the new value
which was cancelled.

Am I missing an event my control needs to receive the cancel?

Thanks for any help,
Joe
 
Hi Joe,

I think you have to inherite from DataGridColumnStyle class if you need to
make a column with comboboxes. Are you displaying the data on the combobox
using data binding? When we bind controls on a form to properties of an
object, data binding listens for propertyChanged events for each property
to which our controls are bound. If any one of them is raised, all the
controls bound to that object are refreshed.

Please check the following article for more information.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/ht
ml/vbnet02252003.asp

If that's not he case, could you post your code here?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top