日期:2014-05-18  浏览次数:20468 次

如何让GridView的CommandField的编辑按钮变灰?
想通过控制,某些行的编辑不可用,怎么弄?

------解决方案--------------------
protected void gvCP_RowDataBound(object sender, GridViewRowEventArgs e)
{
e.Row.Cells[1].Enabled = false;
}