Hello,
I'm experiencing some problems with a gridview bound to a bindingsource (using entity framework 5).
The RowsChanging event does not fire on binding operations, neither on the initial binding nor on any subsequent reloading of data. The RowsChanged event does. To my understanding before every RowsChanged event, the RowsChanging event should fire at least once.
I tried using the gridview.Rows.CollectionChanging event, but it does not exist - though it should according to the documentation.
The event DOES fire if I modify the rows at runtime (like removing one row).
simplified version of the code (tried variations of binding to the MasterTemplate, with or without BeginEdit etc):
Kind regards,
Andreas
public
RadForm1()
{
InitializeComponent();
radGridView1.RowsChanging += RadGridView1OnRowsChanging;
bs =
new
BindingSource {DataSource = context.Sonderthema_Art.ToList()};
radGridView1.DataSource = bs;
}
private
void
RadGridView1OnRowsChanging(
object
sender, GridViewCollectionChangingEventArgs gridViewCollectionChangingEventArgs)
{
throw
new
NotImplementedException();
}