tags:

views:

77

answers:

0

Hi,

I have a datagridview bound to a BindingSource which is some internal class. I want to be able to display default values when users adds a new row.

I tried in 2 ways with no avail:

  1. Setting an event handler for the DefaultValuesNeeded event. However, the event doesn't seem to be called.
  2. Adding logic inside the constructor of the bindingSource object. However, the constructor is called only on the first row and not the second, so I get default values only for the first row.

What am I missing here?