我InitializeRow
为此编写了一个事件,但我无法从中获取单元格(e.row.cells)以使其只读。
protected void grdCrewCTC_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
{
if ((int)e.Row.Items[1].Value > 5000)
{
e.Row.Cells[3].AllowEditing = Infragistics.WebUI.UltraWebGrid.AllowEditing.No;
}
}