if in datagrid button id="btndel" and commandname="btndelete" then on datagrid's itemcommand write this code. // code. if e.commandname="btndelete" dim btn as button btn=e.item.findcontrol("btndel") if not btn is nothing then ''write delete query here. end if ''refresh datagrid. end if :-D
Vivek Kushwaha