I am working on porting a project that used the C1 FlexGrid to the UltraWinGrid. I am coming along nicely with ta test app getting the WinGrid to work and appear similar to how I used the FlexGrid (had 2-vel nodes. I am using the GroupBy functionality at run time with the user not allowed to control it. One problem I am having is trying to get rid of the row selection highlighting. I have the following in code:
Unfortunately, when I click on a cell, the enire row is still selected. According to the help file, setting the CellClickAction to CellSelect should highlight only the single cell. I had to add the SelectTypeGroupByRow to None to keep the GroupBy row from being highlighted. So what is still highlighting the data row?
With ugFlowSheet.DisplayLayout
.GroupByBox.Hidden =
True ' This hides the GroupBy box from the user
.MaxColScrollRegions = 1
' This keeps the user from splitting the grid horizontally
.MaxRowScrollRegions = 1
' This keeps the user from splitting the grid vertically
.Override.RowSelectors = DefaultableBoolean.False
' Set to Default to add a row selector
.Override.CellClickAction = CellClickAction.CellSelect '
We do not go into edit mode
.Override.SelectTypeCell = SelectType.Single
.Override.SelectTypeRow = SelectType.None
.Override.SelectTypeGroupByRow = SelectType.None
' Keeps GroupBy rows (group, subgroup) from selecting
End With
I found an answer by continuing to search the forum. The answer was in the article: http://community.infragistics.com/winforms/codesamples/archives/79104.aspx which specified how to reset the ActiveRowAppearance that was a "preset".