28 Feb 2020

ASP.NET - DataTable does not get applied to GridView after post back and error in the Javascript console - TypeError: e is undefined OR Uncaught TypeError: Cannot read property 'mData' of undefined

In Page_Load OR Page_LoadComplete events, add this line at the end.

GridView1.HeaderRow.TableSection = TableRowSection.TableHeader;

No comments:

Post a Comment