Hello,
I noticed that adding a new row with the Add ... button is not possible when databinded to a generic List<>
I wonder why the Infragistics team didn't implement this?
Or is it a feature and is it going to be implemented?
Greetings
This is not something that it is possible for us to implement, because it's a function of the List, not the grid. List does not have an add method that takes no parameters, and the grid can't know how to create an object that belongs in the List. If you want to bind the grid to a generic list that supports adding, I recommend using BindingList<> instead of List<>.
Ok, i changed all my List<> businessentities to BindingList<> but when i hit the button with "BindingList'1" on it i still get a message:
"Unable to add a row: Row insertion not supported by this datasource."
BindingList doesn't solve the problem :(
PS: My view has the following code
#region IOvzRelatieAdresView
{
set
// adresBindingSource.DataSource = value.Adressen;
}
get
#endregion IOvzRelatieAdresView