protected void listGroup_SelectedIndexChanged(object sender, EventArgs e)
    {
        try
        {
            BindRank();
            DataSet ds = objCrewAdmin.GetCrewMatrixGroup(UDFLib.ConvertToInteger(listGroup.SelectedValue));

            for (int i = 0; i < chkRank.Items.Count; i++)
            {
                foreach (DataRow dr in ds.Tables[0].Rows)
                {
                    if (chkRank.Items[i].Value == dr["rankid"].ToString())
                    {
                        chkRank.Items[i].Selected = true;
                    }
                }
                foreach (DataRow dr in ds.Tables[1].Rows)
                {
                    if (chkRank.Items[i].Value == dr["rankid"].ToString())
                    {
                        chkRank.Items[i].Enabled = false;
                        //chkRank.Items[i].Attributes.Add("style", "Display:none;");
                    }
                }
            }
            ScriptManager.RegisterStartupScript(this, this.GetType(), "HideRow", "HideRanks();", true);
        }
        catch (Exception ex)
        {
            UDFLib.WriteExceptionLog(ex);
        }
    }