GridView RowEditing issue

D

DavidC

I have a GridView inside the edit template of a ListView. I am populating
the GridView with code from a class (see below). When I click the Edit
button it throws the error "The GridView 'gvPayDeductions' fired event
RowEditing which wasn't handled." How do I handle editing when not using a
SqlDataSource control? Thanks.

Dim intCheckID As Int32 = Convert.ToInt32(rowView("CheckID"))
Dim gv As GridView = CType(e.Item.FindControl("gvPayDeductions"),
GridView)
gv.DataSource = PayrollClass.GetDeductionsOnePayCheck(intCheckID)
gv.DataBind()
 

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

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top