Skip to content

Replies

0
Nicholas Hunter
Nicholas Hunter answered on Aug 28, 2018 11:25 PM

D'oh! A piece of code I copied and pasted into the grid ClickCell event handler to implement the context menu was selecting the row. Everything works great now. Thanks again, Alan.

0
Nicholas Hunter
Nicholas Hunter answered on Aug 28, 2018 4:47 PM

Thanks, Mike. How do I turn off the default ActiveCellAppearance and ActiveRowAppearance in code?

0
Nicholas Hunter
Nicholas Hunter answered on Aug 27, 2018 8:52 PM

Thanks, Alan! That's very helpful.

I am setting the properties in the UltraGrid1 InitializeLayout handler

Private Sub UltraGrid1_InitializeLayout(sender As Object, e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles UltraGrid1.InitializeLayout

With e.Layout

.GroupByBox.Hidden = True

With .Override
.SelectTypeCell = SelectType.Single
.SelectTypeRow = SelectType.None
.CellClickAction = CellClickAction.CellSelect
.AllowUpdate = Infragistics.Win.DefaultableBoolean.False
.AllowMultiCellOperations = AllowMultiCellOperation.Copy
End With

End With

End Sub

But the "single cell select" mode doesn't seem to take. The entire row appears to be selected, and when I copy & paste, data from the entire row is pasted,