Hide or Remove specific column using checkbox
<p><img src="http://i.stack.imgur.com/aCJmp.jpg" alt="enter image description here"></p>

<p>I have made this gridview along with a list with checkbox.Now what i want  to achieve is that when i check a data from the right side the data in the gridview with the same value that was checked should be removed.  </p>

<p><strong>code</strong>:  </p>

<p>(parent page)  </p>

<pre><code>&lt;script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;

    $(document).ready(function () {

        var hdFielder = $("#MainContent_hdField").val();
        if (hdFielder == "") {
            var stringVal = "";
            $(".headerValue th").each(function () {
                var toAdd = $(this).text();

                if (toAdd == "underfined" || toAdd == "" || toAdd == "Generate") {
                }
                else {
                    stringVal = stringVal + toAdd + ",";
                }
            });
            //alert(stringVal.slice(0, stringVal.length-1));
            $("#MainContent_hdField").val(stringVal);
            $("#MainContent_btnLink").click();
        }
    });

&lt;/script&gt;  
</code></pre>

<p>default.aspx.cs  </p>

<pre><code>namespace Promo2BX
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                FrontOffEntities tmpdb = new FrontOffEntities();

                List&lt;MMBR_PROM&gt; newListMMBR_Prom = tmpdb.MMBR_PROM.ToList();


                GridView1.DataSource = newListMMBR_Prom;
                GridView1.DataBind();
            }
            if (Session["checklist"] == null)
            {
            }
            else
            {
                hdField.Value = Convert.ToString(Session["checkList"]);
            }
        }

        class NewEnty
        {
            public string colName { get; set; }
            public string colValue { get; set; }
        }

        protected void btnLink_Click(object sender, EventArgs e)
        {
            Session["checkList"] = hdField.Value.ToString();
            string[] coll = hdField.Value.ToString().Split(',');

            List&lt;NewEnty&gt; newEntryList = new List&lt;NewEnty&gt;();

            foreach(string c in coll)
            {
                if (c != "")
                {
                    NewEnty colEntity = new NewEnty();
                    colEntity.colName = c;
                    colEntity.colValue = c;
                    newEntryList.Add(colEntity);
                }
            }

            cbList.DataSource = newEntryList;
            cbList.DataTextField = "colName";
            cbList.DataValueField = "colValue";
            cbList.DataBind();
        }

        protected void cbList_SelectedIndexChanged(object sender, EventArgs e)
        {
            string c = "";
            foreach (ListItem cb in cbList.Items)
            {
                if (cb.Selected == true)
                {
                    c = c + cb.Text + ",";
                }
            }
        }

    }
}
</code></pre>

<p>Im  new to asp and jquery so please go easy on me ;)  </p>
