troubleshooting Question

accessing the rowbound event for a gridview inside an usercontrol

Avatar of melinalt
melinaltFlag for United States of America asked on
ASP.NET
1 Comment1 Solution357 ViewsLast Modified:
I am using a gridview to display data in different places through the application.

The gridview must have two different type of views (details and summary) and  I also have to display a check box so the user can hide possible duplicates.

Instead of duplicating code through the application, I created an user control which contains the gridview, link buttons to switch between views (these link buttons call the rowbound for the grid and set the view based on which one got selected),  I also included a check box that the user click and it excludes possible duplicate records, plus drop downs to do special filters.

I have a rowbound event that defines the data displayed in the grid including some date formatting and links/hyperlinks.

The customized control works perfectly all across the application.

Everything works perfectly at this point.

However,  I now am facing a new issue.

I have one page in which I am nesting the customized usercontrol which needs to do some extra validation to the grid rows based on privileges.

In this particular page, I must have access to the gridview's rowbound event which I am already using inside the control.

Is there any way to run a secondary rowbound event from the main page but still use the rowbound event inside the control?

Thanks,




ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros