troubleshooting Question

GridView events

Avatar of DerekWatling
DerekWatlingFlag for South Africa asked on
ASP.NET
2 Comments1 Solution1428 ViewsLast Modified:
I am logging user activity and looking for the appropriate events on a GridView. I need something for the first time the GridView is populated and a different something when it is sorted or a LinkButton in the row is clicked.

"DataBound" fires initally AND for sorting but I can't find any properties to tell me which case this is.
"RowCommand" fires for sorting and clicking but NOT when the the GridView is populated the first time.

I (think I) am looking for something in the DataBound event so I only run my logging code if when the GridView is populated for the first time?
ASKER CERTIFIED SOLUTION
cmhunty

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
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 2 Comments.
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