Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / CreateButtonEventArgs Class / Disabled Property

In This Topic
    Disabled Property
    In This Topic
    Gets whether the command button is unavailable.
    Public ReadOnly Property Disabled As Boolean
    Dim instance As CreateButtonEventArgs
    Dim value As Boolean
    value = instance.Disabled
    public bool Disabled {get;}

    Property Value

    Boolean: true if button is disabled; false otherwise
    Use this property to return true if the button is unavailable.
    This example returns whether the Update button is disabled.
    private void FpSpread1CreateButton(object sender, FarPoint.Web.Spread.CreateButtonEventArgs e)
    bool b;
        if(e.Command == "Update")
            b = e.Disabled;
            TextBox1.Text = b.ToString();
    Private Sub FpSpread1CreateButton(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.CreateButtonEventArgs) Handles FpSpread1.CreateButton
        Dim b As Boolean
        If e.Command = "Update" Then
            b = e.Disabled
            TextBox1.Text = b.ToString()
        End If
    End Sub
    See Also