are you using DBML? or using EDMX ? if yes then you just need to have three layers (DataAccessLAyer you would be having if you are using DBML or EDMX),now as per your code it seems that you also have Business layer as well as your
Member belongs to that business layer only now what you need to is just following
say your member class is having all properties as your database table fields right,so say your table contains two field called id and name right so your member class would containing two of them propoerty which you would be setting and then just pass the object if this class to your business layer with all property set and call the update method just see below code
your business layer
------------------------
public class member
{
public int id {get;set;}
public string MemberName {get;set;}
}
now in your ui where your datagrid is...so i do not know if you have taken edit/update button but in whatever event you have written just set these above property over there like following
var objMember = new Member
{
id = txtid.Text.Trim().Replace("'", string.Empty)),
MemberName = txtMemberName.Text.Trim().Replace("'", string.Empty))
};
now your properties are set now its time to call the method of your dataaccess layer,i am assuming that you would be having one method for update which would be calling you update SP with required param and it would be taking object of Member as parameter,so that you can have all updated values in it exposed as properties like following
var objMemberUpdate = new MemberManager();
objMemberUpdate.UpdateMemberInformation(objMember);
i hope you are getting what i said
just let me know
thxs