I have a grid with two bands, say, Band1 and Band2 (Band1 being the top band).
Moreover, data is groupped based on values in a column in Band1.
I set CellClickAction on grid, Band1, and Band2 to "CellSelect".
However, when I click on a cell in Band2 the whole row is selected ....
What do I miss?
My guess is that the row is not selected, it's just active.
FAQ:How do I turn off the ActiveRowAppearance so that the active row in the grid does not appear selected.
Well ... your suggestion helped somehow, but this is still not what I want.
I just want "child band" behave like a typical spreadsheet, that is a click within row selector should
cause row to be selected ("painted blue"), single click in a cell should edit it (but not select)
and a double click in a cell should select it ("paint blue").
What I get at this moment (after setting "CellClickAction" to "CellSelect" and implementing your
suggestions) is that a single click within cell causes it to become selected and a click on row selector
does not select row.
Hi,
BogdanW said:a single click within cell causes it to become selected
This is what CellSelect mean for CellClickAction. If you want the cell to enter edit mode, then you need to Set CellClickAction to Edit.
BogdanW said: a click on row selector does not select row.
a click on row selector does not select row.
The only reason I can think of for that is that you have turned off row selection in your grid. Maybe you are setting SelectTypeRow to None or else you are disabling the row or rows that you are clicking on.
BogdanW said:a double click in a cell should select it ("paint blue")
For this you would have to handle the CellDoubleClick event and use PerformAction to take the cell out of edit mode and then select it in code.
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridOverride ov = layout.Override; ov.CellClickAction = CellClickAction.Edit; ov.RowSelectors = DefaultableBoolean.True; ov.ActiveRowAppearance.Reset(); ov.ActiveCellAppearance.Reset(); } private void ultraGrid1_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { UltraGrid grid = (UltraGrid)sender; grid.PerformAction(UltraGridAction.ExitEditMode); e.Cell.Selected = true; }