locked
ASPNet gridview RRS feed

  • Question

  • I want to 'Add' row in database using Gridview. on Add button click event I add empty row in Datatble at the top and set EditIndex of gridview to 0. When I click on Update button and Row_Updating event fires. I tried to access new value using GridView1.Rows(e.RowIndex).Cells(1).Text . But it returns zero length string.
    All the examples I saw so far uses objectdatasource and template colom but non of them explains how to access new values in RowUpdating event without them. Can someone explain what needs to be done or do I have to use Template coloum
    Tuesday, March 21, 2006 8:50 PM