Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 PreRender 事件中获取当前行的索引。我该怎么做?
Protected Sub GridView1_PreRender(sender As Object, e As System.EventArgs) Handles GridView1.PreRender Dim idx as integer =... End Sub
PreRender事件与 GridView 控件中的任何特定行无关(例如 RowDataBound)。因此,没有要检索的当前行。
PreRender事件可用于在服务器控件呈现到页面之前执行任何更新。
你想达到什么目的?