This topic is locked

Hide field on odd rows

8/22/2018 5:22:31 PM
ASPRunner.NET General questions
T
Tim author

Hi all,
Is it possible to hide a control on every other row of the list page grid? I assume it will be something with the custom field type, but I don't know how to tell if it's on an odd numbered row. Or maybe it would be done in the before record processed event...?
Thanks for any help.

Tim

admin 8/22/2018

Use a session variable that will be set to 1 initially and incremented in event like BeforeMoveNext:

https://xlinesoft.com/asprunnernet/docs/after_record_processed.htm
This session variable will basically hold the record number and you can use this variable to tell if your current row number is odd or even.