[Solved] Windows Application Error: System.OutOfMemoryException when large record

Last Reply 5 months ago By dharmendr

Posted 5 months ago


i am binding DataGridView in asp.net web form with large number of rows (10000) rows in dataset and getting error on grd.DataBind() System.OutOfMemoryException.

May be its my memory issue of Ram ?

i want to do this without paging solution.

Posted 5 months ago

Size of DataSet exceed memory of your RAM.

Use Top keyword in the select query to avoid issues or use custom paging.

You should better avoid load so much data at once.