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()
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()