Exemplo n.º 1
0
 protected override void AttachChildControls()
 {
     this.CmessagesList          = (Common_Messages_UserSendedMessageList)this.FindControl("Grid_Common_Messages_UserSendedMessageList");
     this.messagesList           = (Grid)this.CmessagesList.FindControl("messagesList");
     this.pager                  = (Pager)this.FindControl("pager");
     this.btnDeleteSelect        = ButtonManager.Create(this.FindControl("btnDeleteSelect"));
     this.btnDeleteSelect.Click += new System.EventHandler(this.btnDeleteSelect_Click);
     if (!this.Page.IsPostBack)
     {
         this.BindData();
     }
     CheckBoxColumn.RegisterClientCheckEvents(this.Page, this.Page.Form.ClientID);
 }
Exemplo n.º 2
0
 protected override void AttachChildControls()
 {
     this.CmessagesList = (Common_Messages_UserSendedMessageList) this.FindControl("Grid_Common_Messages_UserSendedMessageList");
     this.messagesList = (Grid) this.CmessagesList.FindControl("messagesList");
     this.pager = (Pager) this.FindControl("pager");
     this.btnDeleteSelect = ButtonManager.Create(this.FindControl("btnDeleteSelect"));
     this.messagesList.RowDeleting += new GridViewDeleteEventHandler(this.messagesList_RowDeleted);
     this.btnDeleteSelect.Click += new EventHandler(this.btnDeleteSelect_Click);
     if (!this.Page.IsPostBack)
     {
         this.BindData();
     }
     CheckBoxColumn.RegisterClientCheckEvents(this.Page, this.Page.Form.ClientID);
 }