well let us assume you have a usertype session that will determine if we will view the edit/insert/delete button.
protected void example_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if(Session["usertype"] == "admin"){
Button btnsample= (Button)e.Row.FindControl("insertbutton");
btnsample.visible = true;
}
else
{
Button btnsample= (Button)e.Row.FindControl("insertbutton");
btnsample.visible = false;
}
}
}