0

我的代码:

protected void ASPxGridView1_HtmlDataCellPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableDataCellEventArgs e)
{
    if (e.DataColumn.FieldName == "col7name")
    {
        // Here I can disable the same cell by the following code:
        if ( < condition > )
        {
            e.Cell.Enabled = false;
        }
        // But my question is that how to disable another cell in the same row.
    }
}

如何根据devexpress aspxgridview中的另一个单元格值禁用同一行中的另一个单元格?

4

1 回答 1

0

我使用e.GetValue("fieldname")并实现了我的目标。

于 2012-12-31T11:58:39.643 回答