private void grdMain_UpdateCommand(object source, DataGridCommandEventArgs e)
        {
            int EventTypeId = int.Parse(e.CommandArgument.ToString());

            ArrayList selectedValues = new ArrayList();

            for (int i = 2; i < e.Item.Cells.Count; i++)
            {
                TableCell cell = e.Item.Cells[i];

                foreach (Control ctrl in cell.Controls)
                {
                    CheckBox chk = ctrl as CheckBox;
                    if (chk != null && chk.Checked)
                    {
                        selectedValues.Add(int.Parse(chk.ID.Substring(5)));
                    }
                }
            }

            SystemEvents.AddPersonalSubscription(EventTypeId, selectedValues);

            grdMain.EditItemIndex = -1;
            BindData();
        }