I am using a showGrid in an ASP website that is linked to a dataSource (class in the business logic). the dataSource has two methods - Retrieve and Update.
When I update an item on the showGrid it automatically sends the parameters of the updated row to the method and then I use the method to update the database.
How can I return a message to the presentation logic saying that it has successfully updated? everything is done automatically and I don't even use the GridView1_RowUpdating handler and can't find how communications happen between the showGrid and dataSource.
This is how I added the method as a dataSource for the showGrid

and this is the function that get's called
public bool UpdateSpecificSubject(string sj_name, string sJ_descr, Int32 sj_max_enrollment_no, bool sj_avail, string sj_prerequisite_no, string sj_id)
{
try
{
SubjectsDSTableAdapters.subjectsTableAdapter subjectsAdapter1 = new SubjectsDSTableAdapters.subjectsTableAdapter();
subjectsAdapter1.UpdateOneSubject(sj_name, sJ_descr, sj_max_enrollment_no, sj_avail, sj_id);
subjectsAdapter1.UpdatePrerequisite(sj_prerequisite_no, sj_id);
return true;
}
catch (Exception)
{
Console.Write("Error in connecting to Subjects table");
return false;
}
}
Any help would be appreciated... Thanks!