I am binding data to a datagrid. In the ItemDataBound event, for the last DATA row (i.e. not the footer), I want to attach some JavaScript code to some of the elements. My problem is how to tell when I've reached the last row?
you can make a static app variable that holds the row count when you get your data ... count the rows before you bind, set the count to that variable, then in the ItemDataBound event check and see if its the last row - use a counter for that i suppose.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.