you can try something like this
for a grid view which is
<ItemTemplate>
<asp:Button ID="btnDel" Text ="Delete" ImageUrl ="images/green_down_15_10.bmp" CommandArgument='<%# Eval("ItemID")%>' CommandName ="Delete"
ToolTip="Delete" Enabled ="True" runat="server" >
</asp:Button >
</ItemTemplate>
in the code behind you have the set of user in the datatable who can have the delete rights and loop through it:
boolean deleteenable = true;
if(dtUserhavingrights.select("User = logged on user").length >0)
{
deleteenable = true;
}
else
{
deleteenable = false;
}
for each GridviewRow gvr in mygridview.rows
{
Button btn;
btn = (Btton)gvr.findcontrol("btnDel")
btn.enabled =deleteenable;
}
Please feel free to ask if you have any questions.