如何基于列值使gridview行变为只读?

时间:2019-05-07 07:26:14

标签: asp.net gridview

我正在使用此代码将任何行设置为只读,如果其某一列具有特定值 但它表明,只读不是属性:-

foreach (GridViewRow row in this.gvLoanUtilization.Rows)
        {
            String text = row.Cells[13].Text;
            if (row.Cells[13].Text == "Done")
            {
                gvLoanUtilization.Rows[1].ReadOnly = true;//error
        }

0 个答案:

没有答案