what is the code for updating and saving from grid view data directly in a web form.This is the code i have.Help me out for delete record and update record.
protected void CancelRecord(object sender, GridViewCancelEditEventArgs e)
{
gridRegistrationTableDetails.EditIndex = -1;
BindData();
}
protected void EditRecord(object sender, GridViewEditEventArgs e)
{
gridRegistrationTableDetails.EditIndex = e.NewEditIndex;
BindData();
}
protected void UpdateRecord(object sender, GridViewUpdateEventArgs e)
{
}
protected void DeleteRecord(object sender, GridViewDeleteEventArgs e)
{}
i need to edit the four columns Emp name,Emp address,emp dept,emp mail.emp ID is the primary key.pls help me on this..
If you are using database ,then create functions for Update and Delete
Eg:
Public void Update(DataClass dataclass){…}
public void Delete(int Id){…}
Write these following code in your apsx page