Hide linkbutton in Datagrid templatecolumn for the first row only -
i'm trying hide "delete" linkbutton in datagrid first row only, display "delete" linkbutton button in rest of rows. how can achieve that, appreciated.
found solution.
private sub dgrolloverinformation_itemdatabound(byval sender system.object, byval e system.web.ui.webcontrols.datagriditemeventargs) handles dgrolloverinformation.itemdatabound 'hide "delete" button first row in rolloverinformation datagrid if (e.item.itemindex = 0) dim btndelete linkbutton = ctype(e.item.cells(4).findcontrol("lnkbtndelete"), linkbutton) btndelete.visible = false end if end sub
Comments
Post a Comment