GridViewCommandEventArgs.Handled 属性

定义

获取或设置指示控件是否已处理事件的值。Gets or sets a value that indicates whether the control has handled the event.

public:
 property bool Handled { bool get(); void set(bool value); };
public bool Handled { get; set; }
member this.Handled : bool with get, set
Public Property Handled As Boolean

属性值

Boolean

如果数据绑定事件代码跳过或已完成,则为 true;否则为 falsetrue if data-bound event code was skipped or has finished; otherwise, false.

注解

在事件处理程序中将此属性设置为, true 以指定 GridView 控件不应处理事件,因为您在代码中对其进行处理。Set this property to true in the event handler to specify that the GridView control should not handle the event because you are handling it in your code.

适用于