title: How to Bind List<myclass> data with gridview?
body: <p><a href="https://stackoverflow.com/questions/934479/how-to-adjust-is-a-type-but-is-used-like-a-variable"> Look please my web service codes return type List</a></p>
  
  <p>i get data from web service with listformat List; also created a gridview below and return list to gridview datasource.Bur eror occurs:</p>
  
  <p><strong>A field or property with the name 'name' was not found on the selected data source.</strong></p>
  
  <pre><code>  &#60;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false"&#62;
          &#60;Columns&#62;
          &#60;asp:BoundField HeaderText="Ad" DataField="name" /&#62;
          &#60;asp:BoundField HeaderText="SoyAd" DataField="surname" /&#62;
          &#60;asp:BoundField HeaderText="Numara" DataField="number" /&#62;
          &#60;/Columns&#62;
          &#60;/asp:GridView&#62;</code></pre>
  
  <p></p>
  
  <pre><code> wstest ws = new wstest();
              GridView1.DataSource = ws.GetList(); ;
              GridView1.DataBind();</code></pre>