hi...
i have take a gridview to display data..
and create one function to hide "Delete" button in specific records of gridview..
for that delete button i use the gridview's GridView_RowCommand Event
its working well...
bt when i use the update or paging operation it shows the delete button in every record
what to do..??


Rujuta133 reputationPosted Apr 4, 2010, 10:33 PM EDT
You need to call the same function of hiding the delete button on the pageindexchanging event of the gridview....
Dipa AhujaRank #1,168 · 1.5K reputationPosted Apr 5, 2010, 4:34 AM EDT
but i tried that also in pageindexingchanging & pageindexingchanged but it doesn't work
but it worked by calling that function in GridView1_DataBound
kalpesh Bhadani12 reputationPosted Apr 8, 2010, 10:39 AM EDT
you need to put a link button in itemtemplate and bind the link button with command argument and text
after that if column contains a particular text at that time you can hide the delete button..
hope u understand..