my coder under update button
ClassInfo infoclass = new ClassInfo();
infoclass.classId = decclassId;
infoclass.className = txtclassName.Text;
infoclass.noOfSeats = decimal.Parse(txtNoofSeats.Text);
ClassSp spclass = new ClassSp();
spclass.classEdit(infoclass);
btnsave.Text = "SAVE";
gridfill();
clear();