A
Anna Schmidt
Hello,
I have a programmatically created datagrid (no def in the aspx-file)
dg2.DataBind();
holder.Controls.Add(dg2); // placeholder
in the method InitializeComponent i want to add events (sorting paging) etc.
to this Datagrid dg2:
private void InitializeComponent()
{
this.dg2.SortCommand += new
System.Web.UI.WebControls.DataGridSortCommandEventHandler(this.dg_Sort);
....}
but unfortunately it doesn't work..nothings happens?
Any idea?
thank you
as
I have a programmatically created datagrid (no def in the aspx-file)
dg2.DataBind();
holder.Controls.Add(dg2); // placeholder
in the method InitializeComponent i want to add events (sorting paging) etc.
to this Datagrid dg2:
private void InitializeComponent()
{
this.dg2.SortCommand += new
System.Web.UI.WebControls.DataGridSortCommandEventHandler(this.dg_Sort);
....}
but unfortunately it doesn't work..nothings happens?
Any idea?
thank you
as