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