Question

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
Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top