2016-07-05 61 views

回答

1

試試這個,改變條件按規定

protected void ASPxGridView1_CellEditorInitialize(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewEditorEventArgs e) { 
    if (ASPxGridView1.IsNewRowEditing) return; 
    if (e.Column.FieldName == "UnitPrice") 
      if (ASPxGridView1.GetRowValues(....) == ....) 
        e.Editor.ReadOnly = true; 
} 
+1

謝謝,我已經改變了答案與WPF私人無效tblView_ShowingEditor如果(e.Row!= NULL){ 如果 (e.Column.FieldName ==「的ColumnName我自己的路(對象發件人,ShowingEditorEventArgs E) { 「) { e.Cancel = true; } } } –

+0

e.Cancel = true用於只讀。 –

相關問題