[英]disable a cell based on another cell value in a row in aspxgridview
My Code: 我的代码:
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.
}
}
How to disable another cell in the same row based on another cell value in devexpress aspxgridview? 如何基于devexpress aspxgridview中的另一个单元格值禁用同一行中的另一个单元格?
我使用e.GetValue("fieldname")
并实现了我的目标。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.