Hello Sourav,
Create flag variable that will be marked when your condition has happened.
Afterwars, in DataGrid1_ItemCreated/DataGrid1_ItemDataBound change property
of your button. First event fired when grid is in the start of grid creating
and the second one fires at the bottom of the chain of events that occur
when the grid layout is created
SG> I want to change the "scr" like src='images/Edit.ICO' to
SG> src='images/XYZ.ICO' dynamically based on some condition.
SG>
SG> My EditCommandColumn:
SG> <asp:EditCommandColumn ButtonType="LinkButton" UpdateText="<img
SG> alt='Save'
SG> src='images/Save.ICO' height=20 width=20 border=0>"
SG> CancelText="<img
SG> alt='Cancel' src='images/Cancel.ICO' height=20 width=20 border=0>"
SG> EditText="<img alt='Save' src='images/Edit.ICO' height=20 width=20
SG> border=0>"
SG> ItemStyle-HorizontalAlign="Center"
SG> ItemStyle-VerticalAlign="Middle"></asp:EditCommandColumn>
SG> How can I do this? Could you please give me some idea.
SG>
---
WBR,
Michael Nemtsev :: blog:
http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche