Click here to Skip to main content
15,898,734 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends i have faced one question in second round of my interview about grid can anybody help me how to insert a one lakh records at a time into grid..just a hint is enough for me..thanks in advance..
Posted

My general rule is: Don't.

It's easy to do - just assemble them into a DataTable or other data aware structure and attach them as the DataSource of the GridView. But it's a stupid thing to do - think about the user trying to navigate 100,000 records! Would you want to try and find the data you are interested in, buried in that lot? Provide search and filter options, and page it instead. Help the user find his data instead of deluging him in irrelevancy.
 
Share this answer
 
hi yjreddy,

One another option is use xml datatype in your database and pass it from .net.
This link will help you for how to use XML.

Pass XML Parameter
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900