There is a simple ASP application on which you need to display a very large table. On the form is a grid view:
<asp:GridView ID="VTable" runat="server" Width="774px" style="margin-left: 0px"/> Rather trivially, it specifies the source of the data:
private void UploadTable(string command) { DataTable TABLE = DBWorker.ReturnTable(command)); VTable.DataSource = TABLE; VTable.DataBind(); } However, at the time of binding the DataBind (), a System.OutOfMemoryException . I read that the exception is caused by the fact that more than 400,000 lines cannot be written to the grid view. However, there are over a million of them in the table, what to do about it?