Atomic Star
Atomic Star

Reputation: 5517

Cancel Infragistics UltraGrid cell click event

I want to cancel the cell click but I don't find an e.Cancel or similar. How is this done in the UltraWinGrid?

 Private Sub ugResult_ClickCell(sender As System.Object, e As Infragistics.Win.UltraWinGrid.ClickCellEventArgs) Handles ugResult.ClickCell
        If Not IsDBNull(currentUser) Then
            // some code
        Else
            // e.Cancel or similar ???
        End If
    End Sub

Upvotes: 2

Views: 2798

Answers (1)

alhalama
alhalama

Reputation: 3228

If you are looking to make the Grid read only or not allow editing for a specific user you could look at the following:

If you wish to prevent editing conditionally for certain cells, the BeforeEnterEditMode event can be canceled.

Upvotes: 3

Related Questions