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.

enter image description here

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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -