DataGridView and BindingNavigators

sfx

Well-known member
Joined
Jan 31, 2006
Messages
46
Programming Experience
Beginner
Hello,

When I click the Add button on a BindingNavigator (bound to a BindingSource) I cannot get the DefaultValuesNeeded event of a DataGridView to populate a cell with a default value. Has anyone else encountered this issue before? Is there a work-around?

Cheers,

sfx
 
This would appear to be quite a common question all over the web. I've had a go with it and i can't say that i've experienced the same problems you have, but talking to a friend of mine he suggested that you might try using the cells index rather than the name. example...

VB.NET:
e.Row.Cells(0).Value = Some Value
 
Hi Vis,

Thanks for your assistance with this. I have resorted to unwiring the default AddNewItem event from the BindingNavigator and replacing it with my own. This seems to work ok, but not as well as I would have liked.

Cheers,

sfx
 
Back
Top