Hide a gridView row in asp.net

后端 未结 13 862
说谎
说谎 2021-01-14 21:22

I am creating a gridView that allows adding new rows by adding the controls necessary for the insert into the FooterTemplate, but when the Ob

13条回答
  •  日久生厌
    2021-01-14 22:03

    You should use DataKeyNames in your GridView:

    And then retrieve it on your code: GridView1.DataKeys[0].Value.ToString()

    Where "0" is the number of the row you want to get the "FooID"

提交回复
热议问题