protected void radgrdContact_ItemDataBound(object sender, GridItemEventArgs e)
        {
            try
            {
                if (e.Item.ItemType == GridItemType.Header)
                {
                    CheckBox chkBox = (CheckBox)e.Item.FindControl("chkHeadWrtCt");
                    if (chkBox != null)
                        chkBox.Attributes.Add("onclick", string.Format("HeaderCheckBox_Click('{0}',{1},'{2}')", radgrdContact.ClientID, 0, chkBox.ClientID));
                }

                if (e.Item is GridDataItem)
                {
                    CheckBox chkBox = (CheckBox)e.Item.FindControl("chkItemWrtCt");
                    if (chkBox != null)
                        chkBox.Attributes.Add("onclick", string.Format("RowCheckBox_Click('{0}',{1},'{2}')", radgrdContact.ClientID, chkBox.ClientID, e.Item.ItemIndex));
                }





                if (e.Item is GridEditableItem && e.Item.IsInEditMode)
                {

                    GridEditableItem editForm = (GridEditableItem)e.Item;
                    RadComboBox radcombo = (RadComboBox)editForm.FindControl("lblGrdContTitleEdit");
                    string ItemValue = string.Empty;
                    BindCombo objCmbBind = new BindCombo();
                    DataSet DsCmb = null;
                    DsCmb = objCmbBind.GetTitle();

                    radcombo.DataSource = DsCmb;
                    radcombo.DataTextField = "TITLE_DESC";
                    radcombo.DataValueField = "TITLE_ID";
                    radcombo.DataBind();
                    objCmbBind = null;
                    DsCmb = null;

                    // Note : Assigning selected value to dropdown list


                    Label lblTitleId = (Label)editForm.FindControl("lblGrdContTitleIdEdit");
                    radcombo.SelectedValue = lblTitleId.Text;


                }


            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        private void BindTitle()
        {
            BindCombo objCmbBind = new BindCombo();
            DataSet DsCmb = null;
            DsCmb = objCmbBind.GetTitle();

            radCmbTitle.DataSource = DsCmb;
            radCmbTitle.DataTextField = "TITLE_DESC";
            radCmbTitle.DataValueField = "TITLE_ID";
            radCmbTitle.DataBind();
            objCmbBind = null;
            DsCmb = null;
            radCmbTitle.Items.Insert(0, new RadComboBoxItem("", "0"));

        }