문제

I would like to get the index of the current row at the PreRender event. How can i do it?

Protected Sub GridView1_PreRender(sender As Object, e As System.EventArgs) Handles GridView1.PreRender
Dim idx as integer =...
End Sub
도움이 되었습니까?

해결책

The PreRender event does not relate to any specific row in the GridView control (like the RowDataBound for example). As such there is no current row to retrieve.

The PreRender event can be used perform any updates before the server control is rendered to the page.

What is it you are trying to achieve?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top