D
David
Hi all,
I am dynamically creating a LinkButton in my datagrid, however, the event
that I am creating for it is not firing.
I am obviously missing something? What am I missing?
Here is the code in my datagrid ItemDataBound
LinkButton MyButton = new LinkButton();
MyButton.Text = DataBinder.Eval(DI, "DFES Number").ToString();
MyButton.Command += new CommandEventHandler(this.Stats_Link_Click);
MyButton.CommandName = "StatsGrid_Button_Click";
MyButton.CommandArgument = DataBinder.Eval(DI, "DFES
Number").ToString();
e.Item.Cells[0].Controls.Add(MyButton);
I have a Stats_Link_Click event, but it is not firing.
Thanks for any help.
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
I am dynamically creating a LinkButton in my datagrid, however, the event
that I am creating for it is not firing.
I am obviously missing something? What am I missing?
Here is the code in my datagrid ItemDataBound
LinkButton MyButton = new LinkButton();
MyButton.Text = DataBinder.Eval(DI, "DFES Number").ToString();
MyButton.Command += new CommandEventHandler(this.Stats_Link_Click);
MyButton.CommandName = "StatsGrid_Button_Click";
MyButton.CommandArgument = DataBinder.Eval(DI, "DFES
Number").ToString();
e.Item.Cells[0].Controls.Add(MyButton);
I have a Stats_Link_Click event, but it is not firing.
Thanks for any help.
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available