这是我的代码,但编辑列中的所有内容都启用了假,我想要假的编辑按钮取决于状态值
foreach (GridViewRow row in GridView1.Rows)
{
statuse = dt.Rows[0].ItemArray[6].ToString();
if (statuse != null || statuse != "")
{
if (control is LinkButton)
{
LinkButton btn = control as LinkButton;
btn.Enabled = btn.CommandName.Equals("Edit");
btn.Enabled = false;
}
}
}