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

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -