I have gridview bind in user control and want to access that gridview from user control in page and use export to excel.
I created property in usercontrol to access but I am not able to access it.
How can I access gridview from usercontrol in my page?
Why don’t you write ExportToExcel method into the user control or just make a property which is public and return the refference to the grid: