Link to home
Start Free TrialLog in
Avatar of melinalt
melinaltFlag for United States of America

asked on

accessing the rowbound event for a gridview inside an usercontrol

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
Avatar of Tom Beck
Tom Beck
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial