Consultor Eletrônico



Kbase P152713: How to select an entire row when user clicks on a cell in UltraGrid? 
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/23/2011
Status: Verified

GOAL:

How to select an entire row when user clicks on a cell in UltraGrid?

GOAL:

Can I select a row by clicking on a cell in UltraGrid?

FACT(s) (Environment):

Windows
OpenEdge 10.2x

FIX:

Set the CellClickAction property to RowSelect.
To perform this action for any cell in the grid, set DisplayLayout:Override:CellClickAction to RowSelect in the UltraGrid property sheet.
To perform the same action for individual columns, set column CellClickAction to RowSelect in UltraGrid Designer following these steps:

Open UltraGrid Designer
Expand Band and Column Settings
Select the Band
Go to Columns
Select the Column
Set CellClickAction to RowSelect
CellClickAction can also be set at run time. To change the setting for any cell in the grid:

<UltraGrid object reference>:DisplayLayout:Override:CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction:RowSelect.
To change the setting for an individual column:

<UltraGrid object reference>:DisplayLayout:Bands[n]:Columns[m]:CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction:RowSelect.
In the above line of code, n and m are integers that specify the desired band and column respectively in each collection. Both indexes are zero-based.