Ejemplo n.º 1
0
    protected void RGSubjectGrid_DeleteCommand(object sender, GridCommandEventArgs e)
    {
        AbcDAL MyDAL = new AbcDAL("");

        Telerik.Web.UI.GridDataItem MyGridDataItem = e.Item as Telerik.Web.UI.GridDataItem;
        if (MyGridDataItem != null)
        {
            string SubjectID = (string)((GridDataItem)e.Item).GetDataKeyValue("SubjectID");


            MyDAL.DeleteSubjectMaster(SubjectID);
        }
        MyDAL.BindSubjectComboBox(RCBSubjectName);
    }