Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
755
Adding new row with List<>
posted

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

Parents
  • 469350
    Verified Answer
    Offline posted

    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<>. 

Reply Children