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[0].Controls[1]);
ib.ImageUrl = "...";
}
that's all
Michael
----- Original Message -----
From: "raghunath" <>
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
of datagrid
> hello,
>
>
> 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,
> Raghunath.
>
>
>