title: how to bind data to gridcontrol in WPF
body: <p>I am trying to use LINQ to select data from database and bind it to DevExpress GridControl. I have succeeded yet though. here is my code below. It doesnt bind anything, how can I fix this???</p>
  
  <pre><code>public ucEmailList()
  {
       InitializeComponent();
  
       ARYADA_EMAIL_DBEntities db_ = new ARYADA_EMAIL_DBEntities();
       var elements = from element in db_.TEST_EMAILS
                      where element.ID &gt;4
                      select element;
       gc.DataContext = elements;
  
  }
  </code></pre>