protected
void
grdData_RowEdit(
object
sender, GridViewEditEventArgs e)
{
string
RowId
=
grdData.DataKeys[e.NewEditIndex].Value.ToString();
Response.Redirect(EditUrl(
"
RowId
"
,RowId,
"
EditForm
"
));
}
protected
void
grdData_RowDeleting(
object
sender, GridViewDeleteEventArgs e)
{
if
(ListController.DeleteRow(TableName, grdData.DataKeys[e.RowIndex].Value.ToString()))
{
Common.ShowSuccessFacebox(
"
删除成功!
"
, Page,
0
);
}
else
{
Common.ShowFailureFacebox(
"
删除失败!
"
, Page);
return
;
}
grdData.EditIndex
=
-
1
;
BindData();
}