using System.Collections.Generic;
List<object> ClassIDs = GVMyClassInfo.GetSelectedFieldValues("ClassID");
foreach (object ClassID in ClassIDs)
{
DSMyClassInfo.UpdateParameters["ClassID"] = new Parameter("ClassID", TypeCode.String, ClassID.ToString());
DSMyClassInfo.Update();
}
GVMyClassInfo.DataBind();
List<object> ClassIDs = GVMyClassInfo.GetSelectedFieldValues("ClassID");
foreach (object ClassID in ClassIDs)
{
DSMyClassInfo.UpdateParameters["ClassID"] = new Parameter("ClassID", TypeCode.String, ClassID.ToString());
DSMyClassInfo.Update();
}
GVMyClassInfo.DataBind();