You have to find this control (ImageButton) in the datagrid and then change
value of property in this control.
For this method don't use OnClick and OnCommand events for this buttton.
protected void myItemCommand(... e) // Event OnItemCommand for Datagrid
ImageButton ib = ((ImageButton)e.Item.Cells.Controls);
ib.ImageUrl = "...";
that's all :)
----- Original Message -----
From: "raghunath" <raghunath.mnmajoris.com>
Newsgroups: microsoft.public.dotnet.framework.aspnet.datagridc ontrol
Sent: Wednesday, April 28, 2004 11:03 AM
Subject: Changing ImageURL of Image Button which is added in template column
> I have a template column in my datagrid.
> To the header of template colum, i have added imagebutton.
> On click of the imagebutton , i want to change imageurl of image button.
> thanks in advance,