E
eric dugal
Hi!!
I just want to create a composite control derived from a datagrid and a one
or more button on top of the grid in a table.
I already tried to put my button on the createchildrenControls method :
Controls.Clear();
base.CreateChildControls(); // again, this will call Controls.Clear() so do
it first.
btn = new LinkButton();
btn.ID = "btn1";
btn.Text = "Export";
btn.Click += new System.EventHandler
(this.btn_Click);
this.Controls.Add(btn);
and in the render method , i wrote :
base.rendercontrols();
but this way, the button is at the button of the grid, and the auto-format
functionnality of the grid doesn't work anymore.
Thanks, for any help.
I just want to create a composite control derived from a datagrid and a one
or more button on top of the grid in a table.
I already tried to put my button on the createchildrenControls method :
Controls.Clear();
base.CreateChildControls(); // again, this will call Controls.Clear() so do
it first.
btn = new LinkButton();
btn.ID = "btn1";
btn.Text = "Export";
btn.Click += new System.EventHandler
(this.btn_Click);
this.Controls.Add(btn);
and in the render method , i wrote :
base.rendercontrols();
but this way, the button is at the button of the grid, and the auto-format
functionnality of the grid doesn't work anymore.
Thanks, for any help.