Hi Ressal M N R,
Thank you for posting here.
According to your description, if you want to import excel to gridview, you could refer to the example in the following links.
http://www.c-sharpcorner.com/UploadFile/75a48f/read-excel-sheet-data-and-bind-with-asp-net-gridview/
https://www.aspsnippets.com/Articles/Import-data-from-Excel-to-GridView-in-ASPNet.aspx
Per my understanding, the issue is related to gridview. To solve it ASAP, you can post it with the gridview aspx code in the ASP.NET forum.
ASP.NET forum: https://forums.asp.net/
Best Regards,
Wendy
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.