How to get field value in RowEditing event

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?
 
S

simida

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top