title: Binding different collections to datagrid
body: <p>I have some collections. For example, <code>List 1</code> and <code>List 2</code>. Both are <code>List&lt;Object&gt;</code>. </p>
  
  <p>What I need to do:</p>
  
  <p>1) Insert them into <code>Datagrid</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/nEhDP.jpg" alt="Datagrid with lists"></p>
  
  <p>2) Add new items for <code>Lists</code>. For example, there is some button on form. I click it and new item is adding to first list. <code>Datagrid</code> now look like this:</p>
  
  <p><img src="https://i.stack.imgur.com/7QcGz.jpg" alt="enter image description here"></p>
  
  <p>3) In some way. When I want to pass content of <code>Datagrid</code> to my class object, program must know that <code>List 1</code> now contain 2 items, but <code>List 2</code> - 1 item. </p>
  
  <p>How can I in best way perform such features? </p>