GridView's NewValues and OldValues empty in the OnRowUpdating event

前端 未结 5 2072
南旧
南旧 2020-12-20 14:26

I have the GridView below. I am binding to a custom datasource in the code behind. It gets into the \"OnRowUpdating\" event just fine, but there are no NewValues or OldVal

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-20 15:25

    I was doing databinding in my Page_Load event and when I clicked "Update" the PostBack was done, so was the Page_Load event fired. GridView was filled with the old values again, so in myGrid.RowUpdating event I couldn't retrieve new values. If this helps

提交回复
热议问题