How to get field value in RowEditing event

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I use a GridView to link a datatable.
I wnat to get some filed's value in the RowEditing event of the GridView.
How can I do?
 
Try to use

control= (ControlType )e.Row.FindControl("controlID");

in the RowEditing event.

If it still not working, then add the RowState checking

if (e.Row.RowType == DataControlRowType.DataRow && e.Row.RowState ==
DataControlRowState.Edit)

hope this works.

Sincerely,
simida
 
Back
Top