ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2019 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;;)] 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>, 01 Aug 2019 12:19:19 GMT