title: Datagridview does not showing data
body: <p>I created one Windows application for displaying Gmail conversations in a datagrid. All are the items except Datagridview binding are working. I don't know what happened in Binding to the Gridview.. Please review my code snippet and give me a solution for resolving this issue. Thanks in advance.. My code is appending below...</p>
  
  <pre><code>  GmailItem _gItem = null;
              List&lt;GmailItem&gt; lstMail = new List&lt;GmailItem&gt;();
              for (int i = 0; i &lt; mailCount; i++)
              {
                  _gItem = new GmailItem();
                  _gItem = client.GetMailItem(i);
                  lstMail.Add(_gItem);
              }
  
              _bindingMails.DataSource = lstMail;
              dgMails.DataSource = _bindingMails;
  </code></pre>
  
  <p>And in designer page, this is the code for Datagridview</p>
  
  <pre><code>  this.dgMails.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
          this.dgMails.Location = new System.Drawing.Point(6, 19);
          this.dgMails.Name = "dgMails";
          this.dgMails.Size = new System.Drawing.Size(504, 150);
          this.dgMails.TabIndex = 0;
  </code></pre>
  
  <p>Also, i added this code in our .CS page</p>
  
  <pre><code> dgMails.Dock = DockStyle.Fill;
              dgMails.AutoGenerateColumns = true;
  </code></pre>