---> Question, how to you find the "id" of the current formview data and use it to hide edit and delete?
I think you do that inside FormView DataBound Event like below:
protected void FormView1_DataBound(object sender, EventArgs e)
{
if (FormView1.CurrentMode == FormViewMode.ReadOnly)
{
DataRowView drv = (DataRowView)FormView1.DataItem;
string myTestColumn = drv["someColumn"].ToString();
if (myTestColumn == "someString")
{
LinkButton btnEdit = (LinkButton)FormView1.FindControl("EditLinkButton");
if (btnEdit != null)
{
btnEdit.Visible = false
}
//similarly your delete and other controls
}
}
}