S
sunil
OnItemCreated method of DataGrid I modified the Pager cell to have a button
TableCell pager = (TableCell)e.Item.Controls[0];
ImageButton hImg = new ImageButton();
hImg.ImageAlign=ImageAlign.Left;
hImg.ImageUrl="some.gif";
hImg.CommandName="SomeCommand";
pager.Controls.AddAt(0,hImg);
When i click on the ImageButton I get:
Object reference not set to an instance of an object
How can i handle the event from this Button.
Appreciate any help. Thanks
TableCell pager = (TableCell)e.Item.Controls[0];
ImageButton hImg = new ImageButton();
hImg.ImageAlign=ImageAlign.Left;
hImg.ImageUrl="some.gif";
hImg.CommandName="SomeCommand";
pager.Controls.AddAt(0,hImg);
When i click on the ImageButton I get:
Object reference not set to an instance of an object
How can i handle the event from this Button.
Appreciate any help. Thanks