protected void gvCustomerAlertSetup_OnItemCommand(object source, GridCommandEventArgs e)
 {
     if (e.CommandName == RadGrid.PerformInsertCommandName)
     {
         GridEditableItem gridEditableItem     = (GridEditableItem)e.Item;
         DropDownList     ddlSIPDiscription    = (DropDownList)e.Item.FindControl("ddlSIPDiscription");
         DropDownList     ddlAlert             = (DropDownList)e.Item.FindControl("ddlAlert");
         TextBox          txtMsg               = (TextBox)e.Item.FindControl("txtMsg");
         RadDatePicker    txtEventSubscription = (RadDatePicker)e.Item.FindControl("txtEventSubscription");
         int count = alertBo.SIPRuleCheck(int.Parse(ddlSIPDiscription.SelectedValue), int.Parse(ddlAlert.SelectedValue));
         if (count > 0)
         {
             ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "MyScript", "alert('Same rule exist for this Scheme!!');", true);
             return;
         }
         else
         {
             alertBo.CreateCustomerAlertConfiguration(int.Parse(ddlSIPDiscription.SelectedValue), int.Parse(ddlAlert.SelectedValue), txtMsg.Text, Convert.ToDateTime(txtEventSubscription.SelectedDate), userVo.UserId);
         }
     }
     if (e.CommandName == RadGrid.DeleteCommandName)
     {
         int alertId = Convert.ToInt32(gvCustomerAlertSetup.MasterTableView.DataKeyValues[e.Item.ItemIndex]["AES_EventSetupID"].ToString());
         alertBo.DeleteCustomerAlertConfiguration(alertId);
     }
     BindCustomerAlertSetup();
 }