ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Generating report using TableAdapters returns Null in ASP.Net MVC<p>I ended up going in the designer and changing these to null and i got it working</p> <pre class="brush: csharp"> [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute(&#34;System.Data.Design.TypedDataSetGenerator&#34;, &#34;15.0.0.0&#34;)] public string PartNumber { get { try { return ((string)(this[this.tableEverythingForReport.PartNumberColumn])); } catch (global::System.InvalidCastException e) { //throw new global::System.Data.StrongTypingException(&#34;The value for column \&#39;PartNumber\&#39; in table \&#39;EverythingForReport\&#39; is DBNull.&#34;, e); return null; } } set { this[this.tableEverythingForReport.PartNumberColumn] = value; } }</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/501013/Generating-report-using-TableAdapters-returns-Null-in-ASPNet-MVC/https://www.aspforums.net:443/Threads/501013/Generating-report-using-TableAdapters-returns-Null-in-ASPNet-MVC/Thu, 01 Aug 2019 12:19:19 GMT